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

"/usr/bin/env: node --harmony: No such file or directory" on running melkor on ubuntu #12

Closed
kodikos opened this issue Nov 26, 2014 · 4 comments
Labels

Comments

@kodikos
Copy link

kodikos commented Nov 26, 2014

Hiya,

I was trying to set up melkor to run as a service under a vagrant cloud server build of ubuntu 14.04. There's a problem with the shebang that you use in your shell script because different flavours of unix handle the shebang differently (http://stackoverflow.com/questions/4303128/how-to-use-multiple-arguments-with-a-shebang-i-e). It's not easy to work out what's going on because most attempts to google the error message you get just talk about node not being installed correctly.
I don't think you need to fix this, unless you really need melkor to work better across 'nixes out of the box. Hopefully people should find this issue and fix it on their own systems. I just wrote a wrapper script as a fix:

!/bin/bash

nodejs --harmony /usr/bin/melkor $*

@hiddentao
Copy link
Owner

Yep, am working on this problem.

@hiddentao hiddentao added the bug label Dec 3, 2014
@methodx
Copy link

methodx commented Dec 4, 2014

Same problem here.
@kodikos, thanks for workaround.

@rcbevans
Copy link

Same issue on Ubuntu 14.10. workaround from @kodikos worked after changing nodejs to node and /usr/bin/melkor to /usr/local/bin/melkor.

hiddentao added a commit that referenced this issue May 9, 2015
@hiddentao
Copy link
Owner

Fixed.

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

No branches or pull requests

4 participants