Having some similar trouble installing the proper version of nodejs to be able to install pm2.
Using CentOS 6.9 and FreePBX 13
I used these instructions to install nodejs
But when I try and run:
#fwconsole ma downloadinstall pm2
No repos specified, using: [standard,extended,unsupported,commercial] from last GUI settings
Starting pm2 download..
Verifying local module download...Verified
Module pm2 successfully downloaded
Node version is: 0.10.48 requirement is 0.12.18. Run 'yum upgrade nodejs' from the CLI as root
Unable to install module pm2:
- Failed to run installation scripts
#yum upgrade nodejs
Loaded plugins: fastestmirror, security
Setting up Upgrade Process
Loading mirror speeds from cached hostfile
* epel: fedora-epel.mirror.lstn.net
No Packages marked for Update
I can see that I don't have the right version of nodjs but can't figure out how to upgrade. This is more of OS issue than a freepbx issue but perhaps someone could nudge me in the right direction?