简体   繁体   中英

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!

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

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM