我的开发机器是
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