Error installing type sudo npm install -g meteorite '

I am trying to set a meteorite. I have success for installing nodejs (v0.10.7). And when I type sudo npm install -g meteorite. The error below comes. I think there might be some kind of problem with npm (1.2.21). But I do not understand how to solve this. And I am using ubuntu12.10 64bit. Any ideas? He thinks a lot.

npm http GET https://registry.npmjs.org/meteorite

npm http 304 https://registry.npmjs.org/meteorite

npm ERR! Error: ENOTDIR, mkdir '/home/icarus/tmp/npm-5885/1369411459617-0.27502001402899623'

npm ERR! If you need help, you can report this journal:

npm ERR! or send it by email:

npm ERR!

npm ERR! System Linux 3.5.0-17-generic

npm ERR! command "/ usr / bin / node" "/ usr / bin / npm" "install" "-g" "meteorite

npm ERR! cwd / home / icarus

npm ERR! node -v v0.10.7

npm ERR! npm -v 1.2.21

npm ERR! out of order 0

+1
npm meteor meteorite
May 24 '13 at 17:11
source share
1 answer

For those who have landed here, like me, this is usually a problem with the tmp folder in the root directory, followed by npm trying to install from the cache. This should fix this:

rm -rf ~/tmp sudo npm cache clear sudo npm install -g meteorite 

If you still get the ENOTDIR error, you can try to make the directory yourself, clear the cache and reinstall, but it seems that deleting the tmp folder usually does the trick.

Suitable for Coombesy to publish this solution here .

+2
Oct 02 '13 at
source share



All Articles