Thursday 11 July 2019

PM2 Module version mismatch. Expected 48, got 57 - Resolved


Hello there,

Usually when you guys upgrade the node version from lower to higher you sometimes face this issue.

It happened to me when i upgraded my code base using node 6.0 to node v8.0 .  When i start the pm2 , it throws this error halted.

So, the steps i used to make the PM2 package work. usually we get the problem for SHAP npm package. (you can try npm install shap )


i used nvm to install multiple node version and use 8.0 then go to your code base folder in terminal and try below commands.


npm rebuild  (if this does not work try below command)

rm -rf node_modules && npm install

pm2 delete all

pm2 start


Boom!!!!!!! you are done . Thank me later  . Cheers