FreePBX 13 - Failed to install PM2

Some of the help is a bit dated and doesn’t seem to fix it anymore. Any tips?

[[email protected] mhammett]# fwconsole ma delete pm2 --force
Module pm2 successfully deleted
Updating Hooks…Done
[[email protected] mhammett]# rm -Rf /home/asterisk/{.npm,.npmrc,.node-gyp,.package_cache}
[[email protected] mhammett]# rm -Rf /var/www/html/admin/modules/pm2/node/node_modules
[[email protected] mhammett]# fwconsole ma downloadinstall pm2

[[email protected] mhammett]# cat /etc/schmooze/pbx-version
10.13.66-22

[[email protected] mhammett]# fwconsole ma downloadinstall pm2
No repos specified, using: [standard,commercial] from last GUI settings

Starting pm2 download…
Processing pm2
Verifying local module download…Verified
Extracting…Done
Module pm2 successfully downloaded
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…
npm ERR! Linux 2.6.32-642.6.2.el6.i686
npm ERR! argv “/usr/bin/node” “/usr/bin/npm” “install” “–only=production”
npm ERR! node v0.12.18
npm ERR! npm v2.15.11
npm ERR! code EAI_AGAIN
npm ERR! errno EAI_AGAIN
npm ERR! syscall getaddrinfo

npm ERR! getaddrinfo EAI_AGAIN
npm ERR!
npm ERR! If you need help, you may report this error at:
npm ERR! https://github.com/npm/npm/issues

npm ERR! Please include the following file with any support request:
npm ERR! /var/www/html/admin/modules/pm2/node/npm-debug.log

Finished updating libraries!

There was an error installing. Please review the install log. (/var/www/html/admin/modules/pm2/node/logs/install.log)
Unable to install module pm2:

  • Failed to run installation scripts
    Updating Hooks…Done

node -v ? I find v10.23 and v11.15 works but v12 fails(on Debian 9, FreePBX 15) npm v6

[[email protected] mhammett]# node -v
v0.12.18
[[email protected] mhammett]# yum list installed | grep node
nodejs.i686 0.12.18-1nodesource.el6 @pbx1
nodejs-debuginfo.i686 0.12.18-1nodesource.el6 @pbx1
nodejs-devel.i686 0.12.18-1nodesource.el6 @pbx1
nodejs-docs.noarch 0.12.18-1nodesource.el6 @pbx1

It looks like I’m newer than you. Time to see how to roll back.

Newer not always better :wink: . i686 might be your problem.

I didn’t set this up, but it appears to be from the FreePBX distro, so I don’t know that I have much control over that.

Here’s a copy of the npm-debug.log, for those interested.

https://dnacom-my.sharepoint.com/:u:/g/personal/mhammett_dna-communications_com/EYOlFScTI4hMlcm3tJNZDM8BnwCWFy3EjX3bSEQ0GrVEMg?e=kL6qBV

Technically that should not prevent you from controlling your nodejs subsystem but not if you only rely on available yum repos. Perhaps a knowledgeable ‘distro user’ can step in here.

Okay, so I had a DNS server that was resolving some FQDNs, but not others. Not sure why. Changed DNS servers and I’m off to the races.

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