livedown
livedown copied to clipboard
Shebang / interpreter name in Ubuntu 14.04
In my Ubuntu 14.04 the shebang line
#!/usr/bin/env node
does not work. What works is
#!/usr/bin/env nodejs
Weird. How did you install it?
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]
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