What my ultimate goal is to be able to use the chat function of my softphone client via XMPP and Prosody, but I am having difficulty installing the modules I need.
In order to install/enable XMPP from the FreePBX Module Admin page, it is required to have "Process Management" installed.
When I try to install "Process Management" (by either the local file or download/upgrade) I get the error, "Node Package Manager is not installed. Error(s) installing pm2: Failed to run installation scripts".
When I try to install NPM (Node Package Manager" I get the warning, "ERROR: npm is known not to run on Node.js v4.5.0 Node.js 4 is supported but the specific version you're running has a bug known to break npm. Please update to at least 4.7.0 to use this version of npm. You can find the latest release of Node.js at https://nodejs.org"
So I go to nodejs.org and find all kinds of versions, but am unsure which one to get for my Raspberry Pi version3. (ARMv6 ???) Which once should I download and install?
Or am I going about this all wrong to get chat functionality?
Thanks!
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
I assume you are using a Raspbian Jessie based RasPBX build, because the latest Stretch based version (raspbx-10-10-2017) already has nodejs installed. When I built this image I found the repository version was too old for FreePBX, therefore I also had to install from nodesource.com. Maybe you want to consider upgrading.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Hello all!
What my ultimate goal is to be able to use the chat function of my softphone client via XMPP and Prosody, but I am having difficulty installing the modules I need.
In order to install/enable XMPP from the FreePBX Module Admin page, it is required to have "Process Management" installed.
When I try to install "Process Management" (by either the local file or download/upgrade) I get the error, "Node Package Manager is not installed. Error(s) installing pm2: Failed to run installation scripts".
When I try to install NPM (Node Package Manager" I get the warning, "ERROR: npm is known not to run on Node.js v4.5.0 Node.js 4 is supported but the specific version you're running has a bug known to break npm. Please update to at least 4.7.0 to use this version of npm. You can find the latest release of Node.js at https://nodejs.org"
So I go to nodejs.org and find all kinds of versions, but am unsure which one to get for my Raspberry Pi version3. (ARMv6 ???) Which once should I download and install?
Or am I going about this all wrong to get chat functionality?
Thanks!
This is how I install nodejs:
I assume you are using a Raspbian Jessie based RasPBX build, because the latest Stretch based version (raspbx-10-10-2017) already has nodejs installed. When I built this image I found the repository version was too old for FreePBX, therefore I also had to install from nodesource.com. Maybe you want to consider upgrading.