npm install -g yo error

时间:2014-09-25 16:36:04

标签: node.js ubuntu npm

我的开发机器是

cat / etc / issue

Ubuntu 14.04 LTS \n \l

但问题是我跑

的时候
sudo npm install -g yo

我得到了

> yo@1.1.2 postinstall /home/shajahan/npm/lib/node_modules/yo
> node ./scripts/doctor

sh: 1: node: not found
npm WARN This failure might be due to the use of legacy binary "node"
npm WARN For further explanations, please read
/usr/share/doc/nodejs/README.Debian

npm ERR! weird error 127
npm ERR! not ok code 0

我甚至无法运行

~/js-sandbox$ yo webapp
yo: command not found

0 个答案:

没有答案