Good morning,
I found this trick for install you keystone JS without this error:
npm http 304 https://registry.npmjs.org/inherits
/usr/local/bin/yo -> /usr/local/lib/node_modules/yo/cli.js
> yo@1.1.2 postinstall /usr/local/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 searched nodejs on my installation:
root@localhost:~# which nodejs
/usr/bin/nodejs
root@localhost:~# cd /usr/bin/
root@localhost:/usr/bin# ln -s nodejs node
now It works.
/usr/local/bin/yo -> /usr/local/lib/node_modules/yo/cli.js
> y...@1.1.2 postinstall /usr/local/lib/node_modules/yo
> node ./scripts/doctor
[Yeoman Doctor] Everything looks alright!
------------
I hope is usefull for other Ubuntu Server users.
bye have fun :)