How can I use forever start "npm start"
See original GitHub issuehi guys, I want to use forever start “npm start” but it is not work. please check my code & give me solution or tip.
in my project package.json
“scripts”: { “start”: “nodemon ./server.js --exec babel-node”, “build”: “babel . -d dist --presets es2015,stage-2 --ignore spec.js,node_modules”, “serve”: “node dist/server.js”, “start_babel”: “babel-node ./server.js --preset=babel-preset-es2015”, “test”: “echo "Error: no test specified" && exit 1”, “lint”: “eslint .” },
I try
forever start --minUptime 5000 --spinSleepTime 2000 "npm start" /root/project/project1/
result is
info: Forever processing file: npm start error: Cannot start forever error: script /root/project/project1/npm start does not exist.
How can i use forever…?
Issue Analytics
- State:
- Created 5 years ago
- Comments:9
Top Results From Across the Web
forever - npm
Start using forever in your project by running `npm i forever`. There are 502 other projects in the npm registry using forever.
Read more >nodejs forever : How to run my npm application - Stack Overflow
Right now i am runnign my nodejs application as npm start . i want to run it in background. I found forever package...
Read more >Running Node.js scripts continuously using forever
Forever is an npm module that ensures a Node.js script continuously runs in the background on the server. It's a helpful CLI tool...
Read more >Forever with `npm start` · Issue #540 · foreversd/forever - GitHub
Hi,. I'm normally starting my script with npm start to get access to the user environment, which includes variables from the package.json ...
Read more >How to run your Node server continuously with forever
Forever is an npm package used to keep your script running continuously in the background. It's a handy CLI tool that helps you...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Try this one
forever start -c "npm start"
You can try :
forever start --minUptime 5000 --spinSleepTime 2000 -c "npm run start" /root/project/project1/