I Installed forever module using npm globally in my ubuntu server as super user. But i can not start my nodeJs Appliation using this. I typed "forever" in my terminal, but seems like no commands were executed. am sure that i not faced any errors while "forever" instalation. Please see the below output. I tried the same in my local machine. But it works fine. am using Express 4.
forever in ubuntu server:-
forever in my local machine ouptput as follows:-
Is there any server settings i need to do it to work?
Use npx to solve the error "forever: command not found", e.g. npx forever start app. js or install the package globally by running npm install -g forever to be able to use the command without the npx prefix. The fastest way to solve the error is to use the npx command. Copied!
Myself got the answer. i did link between node and nodejs by:-
sudo ln -s /usr/bin/nodejs /usr/local/bin/node
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With