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

Error received when using 'sails' command #1898

Closed
alexandrubau opened this issue Jun 27, 2014 · 2 comments
Closed

Error received when using 'sails' command #1898

alexandrubau opened this issue Jun 27, 2014 · 2 comments

Comments

@alexandrubau
Copy link

I receive the following error:

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

Steps to reproduce:
sudo npm -g install sails
sails new testProject

Enviorment:
Ubuntu 14.04
SailsJS v0.9.16

Possible solutions:

  1. First line of the file /usr/local/bin/sails should be: #!/usr/bin/env nodejs instead of #!/usr/bin/env node
  2. Create another symlink with node command like so: sudo ln -s /usr/bin/nodejs /usr/local/bin/node

I've installed nodejs using sudo apt-get install nodejs

Can anyone confirm this ?

@sgress454
Copy link
Member

node is the standard name for the binary. I'm not sure why it's nodejs on Ubuntu, but in any case you'll need to go with option #2 and symlink it, or in your .profile or whatever file do alias node="nodejs".

@alexandrubau
Copy link
Author

Ok, thank you very much.

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

No branches or pull requests

2 participants