Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

forever for nodeJs not working in ubuntu server

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:-

enter image description here

forever in my local machine ouptput as follows:-

enter image description here

Is there any server settings i need to do it to work?

like image 826
Dinoop V P Avatar asked Nov 11 '14 11:11

Dinoop V P


People also ask

How do you check forever is installed or not?

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!


1 Answers

Myself got the answer. i did link between node and nodejs by:-

sudo ln -s /usr/bin/nodejs /usr/local/bin/node
like image 149
Dinoop V P Avatar answered Oct 28 '22 01:10

Dinoop V P