Adrian
Adrian

Reputation: 1539

node.js & forever not recognized?

I have a question about running node.js and forever.

It seems that when I type in my console forever start, nothing is being done. It simply shows the new line in console, as if I pressed enter without any command at all. And if I type eg "dsad" then I get an error about uknown command.

Interesting thing is that node.js scripts aren't executed with "node" commmand, but with "nodejs" command. So, scripts that are executed via "nodejs" command do run, but when I type node "..." it just shows the new line in console, the same as when I tried to run a forever command.

Tried to reinstall forever, also with -g but no luck. Anyone experienced similiar problems?!

Tnx!

Upvotes: 0

Views: 1148

Answers (1)

Pravin Mishra
Pravin Mishra

Reputation: 8434

Make sure to start forever first, then start node app.js using forever command:

forever app.js

Check forever --help for more details.

forever --help

Upvotes: 1

Related Questions