Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Shebang / interpreter name in Ubuntu 14.04 #14

Open
1pakch opened this issue Jul 10, 2015 · 3 comments
Open

Shebang / interpreter name in Ubuntu 14.04 #14

1pakch opened this issue Jul 10, 2015 · 3 comments

Comments

@1pakch
Copy link

1pakch commented Jul 10, 2015

In my Ubuntu 14.04 the shebang line

#!/usr/bin/env node

does not work. What works is

#!/usr/bin/env nodejs
@shime
Copy link
Owner

shime commented Oct 10, 2015

Weird. How did you install it?

@grifcj
Copy link

grifcj commented Feb 25, 2016

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
Copy link

hk0i commented Jun 3, 2016

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants