title: Proper way to update PM2 after updating Node.js
body: <p>After updating Node.js from v10.16 to v10.32, PM2 was not detected, however it was running fine when checked with ps aux. Even upon system reboot PM2 functioned correctly even though manual PM2 commands resulted in following type of error.</p>
  
  <p>pm2 list
  pm2: command not found</p>
  
  <p>Switching Node.js back to 10.16 and PM2 commands were again available. fyi PM2 was initially installed under v10.16.</p>
  
  <p>While in v10.32 tried PM2 install command npm install pm2 -g but had to use command npm install pm2 -g --unsafe-perm to get operational.</p>
  
  <p>Node.js v10.16 now runs PM2 v10.1.
  Node.js v10.32 now runs PM2 v10.8.</p>
  
  <p>Is this the proper method to keep PM2 versions in sync and working with Node upgrades/changes? Does this need to occur after installing every new version of Node?</p>