当我运行时npm install
,出现此错误:
npm ERR! install Couldn't read dependencies npm ERR! Error: ENOENT, open '/home/mramahy/Desktop/package.json' 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.19.0-26-generic npm ERR! command "/usr/bin/nodejs" "/usr/bin/npm" "install" npm ERR! cwd /home/mramahy/Desktop npm ERR! node -v v0.10.25 npm ERR! npm -v 1.3.10 npm ERR! path /home/mramahy/Desktop/package.json npm ERR! code ENOENT npm ERR! errno 34 npm ERR! npm ERR! Additional logging details can be found in: npm ERR! /home/mramahy/Desktop/npm-debug.log npm ERR! not ok code 0
为什么会这样?
答案1
我想你会发现 node 1.3.x 很久以前就结束了。我搜索了一下,发现有人有相同或类似的问题。他们大约两天前就遇到了问题。请看这里:
https://github.com/npm/npm/issues/10007
具体在页面底部:
yo 的依赖项期望二进制文件被称为节点: