zapty / forever-service

Provision node script as a service via forever, allowing it to automatically start on boot, working across various Linux distros and OS
https://github.com/zapty/forever-service
MIT License
594 stars 65 forks source link

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

Closed robertosanval closed 9 years ago

robertosanval commented 9 years ago

Hello,

I installed it on CentOS 6.4 64-bit, everything it's OK.

This is my command:

forever-service install -s /var/node/myapp.js -p /usr/local/bin/ myapp

But when I do "sudo service myapp start" I get this error:

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

Thanks

arvind-agarwal commented 9 years ago

The issues seems to be related to node setup, please could be similar to

http://stackoverflow.com/questions/20061529/sublime-text-coffeescript-build-system-env-node-no-such-file-or-directory and see if that helps.

Basically the error is coming when in init.d the forever command is launched and it is unable to find the node executable.

robertosanval commented 9 years ago

Thanks! It solved my problem!

aimensasi commented 7 years ago

@robertosanval can you share the way you solved it?

robertosanval commented 7 years ago

@aimensasi Just creating the symlink https://stackoverflow.com/a/20077620

aimensasi commented 7 years ago

Thanks a lot