Open it4sa opened 1 year ago
@Unitech may I ask you for some details on this issue. Thanks!
@keymetrics can you please help on this? Thanks.
@nitinmukesh did you ever resolve your issue in #2808? I ran into the same issue and struggling to get it resolved. Thanks.
Thanks @laminebakelli for your comment on this issue.
I will follow your suggestions but still not working, got this error now :
May I ask what is the config in your ecosystem.config.js
file?
Did anyone resolve this issue, faced same issue with node project
I am also having the same issue, I was trying to run a simple express app
command:
pm2 start npm --name "backend" -- run dev
Error:
PM2 | 2024-01-31T12:32:54: PM2 log: Script C:\PROGRAM FILES\NODEJS\NPM.CMD had too many unstable restarts (16). Stopped. "errored"
C:\Users\SCS\.pm2\logs\backend-app-out.log last 15 lines:
C:\Users\SCS\.pm2\logs\backend-app-error.log last 15 lines:
0|backend- | C:\PROGRAM FILES\NODEJS\NPM.CMD:1
0|backend- | :: Created by npm, please don't edit manually.
0|backend- | ^
0|backend- |
0|backend- | SyntaxError: Unexpected token ':'
0|backend- | at internalCompileFunction (node:internal/vm:77:18)
0|backend- | at wrapSafe (node:internal/modules/cjs/loader:1288:20)
0|backend- | at Module._compile (node:internal/modules/cjs/loader:1340:27)
0|backend- | at Module._extensions..js (node:internal/modules/cjs/loader:1435:10)
0|backend- | at Module.load (node:internal/modules/cjs/loader:1207:32)
0|backend- | at Module._load (node:internal/modules/cjs/loader:1023:12)
0|backend- | at Object.<anonymous> (C:\Users\SCS\AppData\Roaming\npm\node_modules\pm2\lib\ProcessContainerFork.js:33:23)
0|backend- | at Module._compile (node:internal/modules/cjs/loader:1376:14)
0|backend- | at Module._extensions..js (node:internal/modules/cjs/loader:1435:10)
0|backend- | at Module.load (node:internal/modules/cjs/loader:1207:32)
I got it working but it opens up a terminal try it like this
instead of npm
use its path.
pm2 start "C:\Program Files\nodejs\node_modules\npm\bin\npm-cli.js" --name "MultilingualSystem" -- run dev
It seems like this is happening because of nvm
\nvm\v20.15.0\NPM.CMD:1
:: Created by npm, please don't edit manually.
What's going wrong?
I'm following this details especially the
Start and configure PM2 with a config.js file
part but getting this error, anyone ran into this before?How could we reproduce this issue?
Please follow this link to reproduce the error.
Followed this post and also posted below but not reply as yet.
Supporting information
All the information is supplied below.