Missing Pm2 can't install - bash: npm: command not found

[Exception (404)]
Unable to locate the FreePBX BMO Class 'Pm2’A required module might be disa
bled or uninstalled. Recommended steps (run from the CLI): 1) fwconsole ma
install pm2 2) fwconsole ma enable pm2

Edge repository already enabled, ignoring option

No repos specified, using: [standard,commercial,unsupported,extended] from last GUI settings

Downloading module ‘pm2’

Processing pm2

Downloading…

28990/28990 [============================] 100%

Finished downloading

Extracting…Done

Download completed in 2 seconds

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…

bash: npm: command not found

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

Chowning directories…Done

What does this log say?

Try checking for System Updates then once updated, try installing the pm2 module again

yum update
fwconsole downloadinstall pm2

Is this FreePBX Distro or build it yourself?

If you built it yourself (CentOS, Debian, Ubuntu, etc) you need to install npm.

apt install npm on Debian.

It’s not very helpful

[[email protected] ~]# cat /var/www/html/admin/modules/pm2/node/logs/install.log

bash: npm: command not found

[[email protected] ~]#

This is a distro I used to install.

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