shime / livedown

Live Markdown previews for your favorite editor.
MIT License
763 stars 45 forks source link

Shebang / interpreter name in Ubuntu 14.04 #14

Open 1pakch opened 9 years ago

1pakch commented 9 years ago

In my Ubuntu 14.04 the shebang line

#!/usr/bin/env node

does not work. What works is

#!/usr/bin/env nodejs
shime commented 9 years ago

Weird. How did you install it?

grifcj commented 8 years ago

The above was true for me too after doing the following.

sudo apt-get install npm
sudo npm -g livedown

Appears that 'node' is in the nodejs-legacy package on Ubuntu 14.04. I installed nodejs-legacy and original shebang line worked.

sudo apt-get install nodejs-legacy

Somewhat confusingly, the nodejs usage text still reads for v0.10.25:

Usage: node [options] [ -e script | script.js ] [arguments] 
       node debug script.js [arguments] 
hk0i commented 8 years ago

my guess is that the binary has a different name, due to the fact that there's another package with the same name. See node package details