Code Monkey home page Code Monkey logo

Comments (10)

erahhal avatar erahhal commented on August 20, 2024 1

I get the same problem on Ubuntu 16.04, but even using sudo:

sudo npm install -g oni-vim

For some reason a global install is trying to write to ~/.npm in my home folder, with the following error:

npm ERR! Error: EACCES: permission denied, mkdir '/home/erahhal/.npm/oni-plugin-typescript'

There's definitely something wrong here.

from oni.

bryphe avatar bryphe commented on August 20, 2024 1

I've published version 0.1.2 at npm, so please try sudo npm install -g oni-vim again. The postinstall script that was causing problems was removed with #40. Thanks!

from oni.

hxegon avatar hxegon commented on August 20, 2024 1

Works for me :)

from oni.

erahhal avatar erahhal commented on August 20, 2024 1

verified that this fix worked.

from oni.

olleharstedt avatar olleharstedt commented on August 20, 2024

I get this error when running npm install -g oni-vim

from oni.

bryphe avatar bryphe commented on August 20, 2024

Interesting, I haven't seen this - and it looks like the npm install step is working okay on TravisCI (which is Linux).

If you clone & build the repo, does it work?

from oni.

olleharstedt avatar olleharstedt commented on August 20, 2024

Yes, I could build it manually.

from oni.

hxegon avatar hxegon commented on August 20, 2024

Getting the same error as @erahhal. A little more info: it's trying to open $HOME/package.json when I try and run sudo npm run install:oni-plugin-typescript.

EDIT: Also ubuntu 16.04

from oni.

jetz avatar jetz commented on August 20, 2024

Same problem on Ubuntu 16.04. Missing write access to /usr/local/lib/node_modules ...

I found when install by sudo npm install -g oni-vim, the oni-plugin-typescript dir's owner in $HOME/.npm is nobody, does it matter?

from oni.

bryphe avatar bryphe commented on August 20, 2024

Hmm, I think I need to get rid of the postinstall script that runs npm install in the oni-plugin-typescript directory, and push those dependencies up.

from oni.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.