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

nodejs not node on Ubuntu Server #44

Closed
nicekiwi opened this issue Mar 9, 2015 · 6 comments
Closed

nodejs not node on Ubuntu Server #44

nicekiwi opened this issue Mar 9, 2015 · 6 comments

Comments

@nicekiwi
Copy link

nicekiwi commented Mar 9, 2015

On an ubuntu server nodejs is accessed via the "nodejs" command, not the "node" command.

So the "npm start" command will break.

@vyp
Copy link
Contributor

vyp commented Mar 9, 2015

So how do you suggest to fix it? If you have a solution that is.

What about simply aliasing node as nodejs in your shell? (And then consequently mentioning that somewhere for ubuntu server users.)

@nicekiwi
Copy link
Author

nicekiwi commented Mar 9, 2015

I suppose there not much more you could do, without making things overly complicated that is.

@vyp
Copy link
Contributor

vyp commented Mar 9, 2015

Well I guess a small script may be written (but with what commands I do not exactly know), but I think a simpler solution would be for the user themselves handle this via aliases, or if using a script or something, use the actual command itself (instead of npm start), but substitute nodejs in place of node.

Keep in mind I'm not the owner, nor a collaborator of this project, so I'm not speaking for them, just my own thoughts.

@abslodov
Copy link

sudo ln -s /usr/bin/nodejs /usr/bin/node

@vyp
Copy link
Contributor

vyp commented Jul 29, 2015

@inexion Obvious solution, not sure why I didn't think of that lol. Thanks!

@ryanlelek
Copy link
Owner

As @inexion mentioned, a symlink of /usr/bin/nodejs to /usr/bin/node is a clean solution.
Alternatively, you can alter ./bin/www in the Raneto project to use "nodejs" instead of "node"

Closing issue.

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