Ubuntu Server installation problem using tutorial on official site

Skip to first unread message

Bais Bais

Aug 22, 2014, 1:13:35 PM8/22/14
to keyst...@googlegroups.com
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

: 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

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

I searched  nodejs on my installation:

root@localhost:~# which 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 :)
Reply all
Reply to author
0 new messages