(Solved) FreePBX Unable to install module pm2

Unable to install module pm2 Failed to run installation scripts. Questo è l’errore che si presenta in alcuni casi quandi si tenta di aggiornare il modulo pm2 in FreePBX 13. Si risolve con:

# curl -sL https://deb.nodesource.com/setup_10.x | sudo -E bash -
# apt install -y nodejs
# fwconsole ma remove pm2 --force
# rm -rf /home/asterisk/.package_cache/npm/
# rm -rf /home/asterisk/.npm
# fwconsole ma downloadinstall pm2

enjoy 😉

Autore: Franco Conidi aka edmond

Senior System Integrator, Network Administrator, Sys Admin Linux, Linux User, Consulente Informatico.

2 pensieri riguardo “(Solved) FreePBX Unable to install module pm2”

  1. Did not work for me. Get the same error as before:
    $ sudo fwconsole ma downloadinstall pm2
    No repos specified, using: [standard] from last GUI settings

    Downloading module ‘pm2’
    Processing pm2
    Verifying local module download…Verified
    Download completed in 4 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..
    npm ERR! Linux 5.10.52-v7+
    npm ERR! argv “/usr/bin/node” “/usr/bin/npm” “install” “–only=production”
    npm ERR! node v12.22.5
    npm ERR! npm v3.10.10

    npm ERR! cb.apply is not a function
    npm ERR!
    npm ERR! If you need help, you may report this error at:
    npm ERR!

    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
    Chowning directories…Done

Lascia un commento

Il tuo indirizzo email non sarà pubblicato. I campi obbligatori sono contrassegnati *