livedown icon indicating copy to clipboard operation
livedown copied to clipboard

Shebang / interpreter name in Ubuntu 14.04

Open 1pakch opened this issue 9 years ago • 3 comments

In my Ubuntu 14.04 the shebang line

#!/usr/bin/env node

does not work. What works is

#!/usr/bin/env nodejs

1pakch avatar Jul 10 '15 15:07 1pakch

Weird. How did you install it?

shime avatar Oct 10 '15 13:10 shime

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] 

grifcj avatar Feb 25 '16 20:02 grifcj

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

hk0i avatar Jun 03 '16 23:06 hk0i