我对Node.js很陌生,试图使用npm安装Flatiron,但它给我一个错误。npm安装错误ENOTDIR
sudo npm install flatiron -g
我也得到 -
npm http GET https://registry.npmjs.org/flatiron
npm http 304 https://registry.npmjs.org/flatiron
npm ERR! Error: ENOTDIR, mkdir '/home/siddharthsaha/tmp/npm-28554/1353323290836-0.20847953506745398'
npm ERR! If you need help, you may report this log at:
npm ERR! <http://github.com/isaacs/npm/issues>
npm ERR! or email it to:
npm ERR! <[email protected]>
npm ERR! System Linux 3.2.0-24-generic
npm ERR! command "/usr/local/bin/node" "/usr/local/bin/npm" "install" "flatiron" "-g"
npm ERR! cwd /home/siddharthsaha/denarit
npm ERR! node -v v0.8.14
npm ERR! npm -v 1.1.65
npm ERR! path /home/siddharthsaha/tmp/npm-28554/1353323290836-0.20847953506745398
npm ERR! code ENOTDIR
npm ERR! errno 27
npm ERR!
npm ERR! Additional logging details can be found in:
npm ERR! /home/siddharthsaha/denarit/npm-debug.log
npm ERR! not ok code 0
这里有什么问题?我没有任何线索。
不,我得到相同的错误,除了304现在更改为200,所以它不是从缓存来。 – Siddharth
你可以尝试在没有'-g'的地方安装它吗?让我们看看它会如何。 –
还没有运气。我做了'sudo npm cache clean',然后做了'sudo npm install flatiron',我得到了同样的错误。 – Siddharth