santinic / how2

AI for the Command Line
https://how2terminal.com
MIT License
5.72k stars 156 forks source link

Gives error on Ubuntu 14.04 LTS #24

Closed noodlebreak closed 8 years ago

noodlebreak commented 8 years ago

I'm getting this:

/usr/bin/env: node: No such file or directory

I installed it as instructed in your readme.

shahkaran commented 8 years ago

I am also getting the same error

shahkaran commented 8 years ago

@noodlebreak solved the issue .. you just need to symlink node

ln -s /usr/bin/nodejs /usr/bin/node

found it thanks to http://stackoverflow.com/a/26320915

santinic commented 8 years ago

I should mention it in the docs. Thanks

santinic commented 8 years ago

It's in the readme now

kapouer commented 8 years ago

Or you install http://packages.ubuntu.com/xenial/nodejs-legacy which does the same with the benefit of not screwing your ubuntu installation.

santinic commented 8 years ago

A symlink can definitely screw your entire life guys. @kapouer, can you confirm the right way would be then:

$ sudo apt-get install nodejs npm nodejs-legacy $ npm install -g how2

so i can put it in the Readme. Thanks

kapouer commented 8 years ago

Yes, it is. I'm also trying to provide a new name for that package nodejs-legacy because nobody ever guessed it provided a node symlink.