question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

How can I use forever start "npm start"

See original GitHub issue

hi 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:open
  • Created 5 years ago
  • Comments:9

github_iconTop GitHub Comments

14reactions
MHamzaRajputcommented, Mar 22, 2019

Try this one forever start -c "npm start"

7reactions
melbayadcommented, Nov 21, 2018

You can try : forever start --minUptime 5000 --spinSleepTime 2000 -c "npm run start" /root/project/project1/

Read more comments on GitHub >

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

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found