I’ve had issues updating my npm modules for a year and still can’t figure out how to fix it. Here’s an example:
~]# fwconsole ma install pms
Detected Missing Dependency of: restapps 16.0.10
Found local Dependency of: restapps 16.0.34.23
Detected Missing Dependency of: pm2 16.0.4
Found local Dependency of: pm2 16.0.8
Installing Missing Dependency of: pm2 16.0.4
Installing/Updating Required Libraries. This may take a while...The following messages are ONLY FOR DEBUGGING. Ignore anything that says 'WARN' or is just a warning
Running installation..
ERROR: npm is known not to run on Node.js v8.16.0
You'll need to upgrade to a newer Node.js version in order to use this
version of npm. You can find the latest version at https://nodejs.org/
Finished updating libraries!
There was an error installing. Please review the install log. (/var/www/html/admin/modules/pm2/node/logs/install.log)
The following error(s) occured:
- Failed to run installation scripts
Unable to resolve dependencies for module pms
I’ve tried updating node to the newest version, but no matter what version of node im using, it always says ERROR: npm is known not to run on Node.js v8.16.0
. Where to go from here?
Additional info:
Any time npm is run under sudo, i get the same error. May be related.
[root@TLCPBX ~]# npm -v
6.4.1
[root@TLCPBX ~]# sudo npm -v
ERROR: npm is known not to run on Node.js v8.16.0
You'll need to upgrade to a newer Node.js version in order to use this
version of npm. You can find the latest version at https://nodejs.org/