Unitech / Unitech/pm2

pm2 start "npm start" doesn't work

Open
#5,551 13 comments 5 reactions 0 assignees View on GitHub

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

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. 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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.