How to install pm2?

hi
i got a problem in FreePBX 15.0.24

fwconsole ma install pm2
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/
Node Package Manager is not installed
Unable to install module pm2:
 - Failed to run installation scripts
Updating Hooks...Done
Chowning directories...Done
node --version
v8.16.0
npm --version
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/```

npm -g install pm2, but I wouldn’t do that. I am not sure what degree of compatibility between the installed version of node and the various packages is required.

[[email protected] ~]# npm -g install pm2
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/

That’s what I meant. The installed version of node does not include npm. You could update the node package manually, but then you’d very likely run into other problems. BTW, why do you need pm2?

i have to install ucp
image

This topic was automatically closed 31 days after the last reply. New replies are no longer allowed.