这是从故宫运行输出例如安装咕噜-CLI尝试安装NPM包,让EN0ENT错误的一切
通知node_modules路径的重复?这是一个环境路径问题吗?当我在OSX上的其他用户上尝试相同的命令时,它可以按预期完美工作。
运行最新的OSX 10.9.1
npm http 304 https://registry.npmjs.org/weak
npm http 304 https://registry.npmjs.org/bunker
npm http 304 https://registry.npmjs.org/argparse
npm http 200 https://registry.npmjs.org/mocha/-/mocha-0.3.3.tgz
npm http 200 https://registry.npmjs.org/should/-/should-0.3.2.tgz
npm http GET https://registry.npmjs.org/tiny-lr/0.0.4
npm http GET https://registry.npmjs.org/cli/0.4.3
npm http GET https://registry.npmjs.org/jasmine-node
npm ERR! Error: ENOENT, lstat '/Users/shanejordan/Documents/Projects/KiddoMath/code/node_modules/grunt-cli/node_modules/resolve/node_modules/tap/node_modules/difflet/node_modules/traverse/index.js'
npm ERR! If you need help, you may report this *entire* log,
npm ERR! including the npm and node versions, at:
npm ERR! <http://github.com/isaacs/npm/issues>
npm ERR! System Darwin 13.0.0
npm ERR! command "node" "/usr/local/bin/npm" "install" "grunt-cli"
npm ERR! cwd /Users/shanejordan/Documents/Projects/KiddoMath/code
npm ERR! node -v v0.10.25
npm ERR! npm -v 1.3.24
npm ERR! path /Users/shanejordan/Documents/Projects/KiddoMath/code/node_modules/grunt-cli/node_modules/resolve/node_modules/tap/node_modules/difflet/node_modules/traverse/index.js
UPDADE: 我跑NPM缓存清理并获得
npm ERR! Error: EACCES, unlink '/Users/shanejordan/.npm/_git-remotes/git-github-com-jkroso-forEach-f0435201/branches' That must be my room problem.
虽然我不知道你的问题的具体原因,重复'node_modules'是由于依赖关系,以及依赖关系的依赖关系等等。 – hexacyanide
Gotcha。也许它不是那么回事。我无法弄清楚为什么ENOENT会一直发生。它看起来像开始工作,然后它会像这样运行5分钟...看起来像它抓住每个依赖于npm,以及这些类型的错误。无论我尝试安装什么软件包,并安装 – Shane
您是否尝试过查找'ENOENT'错误引发的路径? – hexacyanide