Open kennedydmb opened 3 years ago
I figured it out on my side. It's
pm2 start npm -- start
not
pm2 start npm --start
@kennedydmb: Note the space before start
I suggest "closed in comments"
I figured it out on my side. It's
pm2 start npm -- start
notpm2 start npm --start
@kennedydmb: Note the space before start
thanks bro
I figured it out on my side. It's
pm2 start npm -- start
notpm2 start npm --start
@kennedydmb: Note the space before start
Tks man. 2 days looking for this simple answer.
Doesn't seem to work for me.
"scripts": {
"test": "echo \"Error: no test specified\" && exit 1",
"start": "npx tsx index.ts"
},
PS C:\...\Desktop\py\AudioProcessorWhisper\twitch_bot> pm2 start npm -- start
[PM2] Starting C:\PROGRAM FILES\NODEJS\NPM.CMD in fork_mode (1 instance)
[PM2] Done.
[PM2][ERROR] Script not found: C:\...\Desktop\py\AudioProcessorWhisper\twitch_bot\start
What's going wrong?
I am trying to run a React app using the command
pm2 start npm --name "Test App" --start
It is something that has worked many times before, however it now reports:
error: unknown option
--start'`.If I try without
--start
, the CPU usage fluctuates between 0% and 150%.It also doesn't seem to run in the port that I have defined in package.json:
"scripts": { "start": "PORT=3025 react-scripts start",
, again this is something that normally works for me.How could we reproduce this issue?
I am unsure how this problem could be reproduced as I cannot find anyone else with a similar issue, I myself didn't have this issue up until a few days ago.
Supporting information
The only thing that I can think of that correlates is that I recently force cleared npm cache recently. Pm2 version is 4.4.1