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

Node LTS 14.5.15 and pm2 4.5.4 incompatible ? #4992

Closed
PLR2388 opened this issue Feb 15, 2021 · 0 comments
Closed

Node LTS 14.5.15 and pm2 4.5.4 incompatible ? #4992

PLR2388 opened this issue Feb 15, 2021 · 0 comments

Comments

@PLR2388
Copy link

PLR2388 commented Feb 15, 2021

What's going wrong?

The server cannot be started using Node LTS 14.5.15 and the latest version of pm2 (4.5.4).

I have the following log :

module.js:557
throw err;
^

 Error: Cannot find module 'path/.nvm/versions/node/v14.15.5/lib/node_modules/pm2/lib/ProcessContainerFork.js'
    at Function.Module._resolveFilename (module.js:555:15)
    at Function.Module._load (module.js:482:25)
    at Function.Module.runMain (module.js:701:10)
    at startup (bootstrap_node.js:194:16)
    at bootstrap_node.js:618:3

How could we reproduce this issue?

I use nvm to update my node version. I just install the LTS version and use it as default. After, I installed it, I type :
pm2 update as asked by pm2 and it breaks everything at that moment.

I uninstall and reinstall pm2 using npm install pm2@latest -g. The issue wasn't solved. I decided to go to a previous version of pm2 and it work like before.

Is this issue known ? I saw a similar close issue : #4839 Is it related in any way ?

Thank you !

@PLR2388 PLR2388 closed this as completed May 11, 2022
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

No branches or pull requests

1 participant