pm2 start "npm start" doesn't work
Open
Nobody has claimed this yet.
- Dominant language
- JavaScript
- Stars
- 43.3k
- Forks
- 2.7k
- PR merge metrics
- No merged PRs in 30d
Description
Hi:
pm2 start "npm start" doesn't work. I get this error:
[PM2][ERROR] Script not found: D:\Coding\project\npm start
I am using Windows 10.
pm2 version 5.2.2
Same error with pm2 start "npm run start"
How execute npm scripts?
Thanks!
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Reproduce the Windows 10 behavior with pm2 start "npm start" and pm2 start "npm run start" using PM2 5.2.2. Start from the pm2 start command entry point and trace how the quoted argument is interpreted; done means an npm script can be launched successfully or the supported command syntax is documented.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- javascript, node.js
- Domain
- cli
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 25/100