Can't install anything #4719
Comments
Same, compiled and installed node 0.10.26 on Ubuntu 12.04; npm update dies:
Trying as non root a |
Just wondering, and hopefully no one takes this the wrong way: Does any testing get carried out at all before releases are pushed out into the world? Having such a fundamental procedure fail like this seems strange. |
For now I just commented out line 36 of I guess this issue should be filled with https://github.com/isaacs/uid-number |
Did a totally clean install of node. Removed all previous traces of it completely before installing. Still doesn't work. |
Hi, same thing here, I had at least one of the possible ways to reproduce the issue. Consider that yesterday I had my npm installation broken, I deleted every 'node_modules' directory on my hardisk and do a clean node install (osx) alongside some npm packages. Today I did some 'npm update -g [package]' updates. Just after run 'sudo npm update -g uid-number' and get a clean update, I had repeated exactly the same update command by mistake. Inmediatly my npm get broken again. I copied the entire /usr/local/lib/node_modules/uid-number to /usr/local/lib/node_modules/npm/node_modules/uid-number. Unsucessfully. npm ERR! Error: could not get uid/gid npm ERR! System Darwin 13.0.0 |
What is the output of: $ npm config get unsafe-perm If it isn't |
Stop running npm as root with sudo. And worked ok, but just after set me as owner of /usr/local/lib/node_modules directory. Before I tried setting privileges to ug+rw and owner/group to root:staff (my user is staff's member, of course I verified that ;) ) |
npm config get unsafe-perm --> true Setting 'npm config set unsafe-perm true' worked ok. thanks a lot. |
🎉 Not sure that's the best solution, but getting un-stuck is usually a big win! |
I was under the impression that on Mac OS (and possibly Linux), when installing things globally with |
As a workaround for the permissions issue (having to use |
|
Root cause: npm/uid-number#3 Pushing a new npm now. Sorry about this. |
If you are affected by this, you can run this script: https://gist.github.com/isaacs/9117286 The good news is that this bug didn't go out in the recent Node.js release, so you can also click the Big Green Button on http://nodejs.org and it should fix it for you. |
Any time I try to install something, I get a mega error. This is on Mac OS 10.8.
sudo npm install -g generator-angular-fullstack
The text was updated successfully, but these errors were encountered: