verdaccio can‘t start
Open
Nobody has claimed this yet.
- Dominant language
- JavaScript
- Stars
- 43.3k
- Forks
- 2.7k
- PR merge metrics
- No merged PRs in 30d
Description
What's going wrong?
when i run pm2 start verdaccio,verdaccio status is errored
How could we reproduce this issue?
centos7、node 17.9.1、pnpm 7.5.1、pm2 5.2.0、verdaccio v6.0.0-6-next.34
pm2 start verdaccio
pm2 start `which verdaccio`
Supporting information
┌─────┬──────────────┬─────────────┬─────────┬─────────┬──────────┬────────┬──────┬───────────┬──────────┬──────────┬──────────┬──────────┐
│ id │ name │ namespace │ version │ mode │ pid │ uptime │ ↺ │ status │ cpu │ mem │ user │ watching │
├─────┼──────────────┼─────────────┼─────────┼─────────┼──────────┼────────┼──────┼───────────┼──────────┼──────────┼──────────┼──────────┤
│ 0 │ verdaccio │ default │ N/A │ fork │ 0 │ 0 │ 105 │ errored │ 0% │ 0b │ root │ disabled │
└─────┴──────────────┴─────────────┴─────────┴─────────┴──────────┴────────┴──────┴───────────┴──────────┴──────────┴──────────┴──────────┘
/root/.pm2/logs/verdaccio-out.log last 15 lines:
/root/.pm2/logs/verdaccio-error.log last 15 lines:
0|verdacci | /root/.local/share/pnpm/verdaccio:2
0|verdacci | basedir=$(dirname "$(echo "$0" | sed -e 's,\\,/,g')")
0|verdacci | ^^^^^^^
0|verdacci |
0|verdacci | SyntaxError: missing ) after argument list
0|verdacci | at Object.compileFunction (node:vm:352:18)
0|verdacci | at wrapSafe (node:internal/modules/cjs/loader:1027:15)
0|verdacci | at Module._compile (node:internal/modules/cjs/loader:1063:27)
0|verdacci | at Object.Module._extensions..js (node:internal/modules/cjs/loader:1153:10)
0|verdacci | at Module.load (node:internal/modules/cjs/loader:975:32)
0|verdacci | at Function.Module._load (node:internal/modules/cjs/loader:822:12)
0|verdacci | at Object.<anonymous> (/root/.local/share/pnpm/global/5/.pnpm/pm2@5.2.0/node_modules/pm2/lib/ProcessContainerFork.js:33:23)
0|verdacci | at Module._compile (node:internal/modules/cjs/loader:1099:14)
0|verdacci | at Object.Module._extensions..js (node:internal/modules/cjs/loader:1153:10)
0|verdacci | at Module.load (node:internal/modules/cjs/loader:975:32)
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 failure with the listed CentOS, Node.js, pnpm, PM2, and Verdaccio versions using the two shown pm2 start commands. Start with the generated Verdaccio launcher and the PM2 ProcessContainerFork.js stack location, then compare the PM2 error log with the direct command. Done means Verdaccio starts under PM2 without the syntax error.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- javascript, node.js
- Domain
- cli
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 25/100