fwconsole ma downloadinstall pm2
No repos specified, using: [standard,extended] from last GUI settings
Downloading module ‘pm2’
Processing pm2
Verifying local module download…Verified
Extracting…Done
Download completed in 6 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
npm and nodejs are all installed. I can run npm from the cl
I’ve been fighting this for a while - seems like it may be a bash issue? Just incase, here is my .bashrc file:
Gives me the same “bash: npm: command not found” – error.
So it seems to be an issue with how nodejs was installed – which nodejs always seems to install into the user’s home directory (which at the time - I ran as root).
The command:
you don’t necessarily need to uninstall it but you made a good call, asterisk can’t find it, how are you installing it ? system wide installation would putit in /usr/bin