Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Change package version in process list table #5541

Open
wants to merge 1 commit into
base: development
Choose a base branch
from

Conversation

1xtr
Copy link

@1xtr 1xtr commented Jan 29, 2023

Q A
Bug fix? no
New feature? yes
BC breaks? no
Deprecations? no
Tests pass? yes
Fixed tickets -
License MIT

By default PM2 look first available package.json and it's always nvm packet in script path
/home/develop/.nvm/versions/node/v18.13.0/bin/npm If we start script like that:

{
  "script": "npm",
  "args": "run start"
}

in list process table we always see nvm version, now it 0.39.3
I think it's incorrect, because we need to see started package version

P.S. this answer was the source

Swap script path for detect package version. `cwd` first
@CLAassistant
Copy link

CLAassistant commented Jan 29, 2023

CLA assistant check
All committers have signed the CLA.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants