1

my dev machine is

cat /etc/issue

Ubuntu 14.04 LTS \n \l

but the issue is when I run

sudo npm install -g yo

i get

> 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

I can't even run

~/js-sandbox$ yo webapp
yo: command not found
unixmiah
  • 3,081
  • 1
  • 12
  • 26

0 Answers0