我對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