Is it possible to install a newer default version of NodeJS on FreePBX v16 or will that break it? Do any modules besides UCP use it?
npm -v
6.4.1
node -v
v8.16.0
Is it possible to install a newer default version of NodeJS on FreePBX v16 or will that break it? Do any modules besides UCP use it?
npm -v
6.4.1
node -v
v8.16.0
Here are some nodejs services running on one of my servers:
[root@uc-xx ~]# fwconsole pm2 --list -vvv
+---------------------------+-------+--------+----------+-----------------+------+---------+
| Process Name | PID | Status | Restarts | Uptime | CPU | Mem |
+---------------------------+-------+--------+----------+-----------------+------+---------+
| cdrpro | 29290 | online | 2 | 3 days, 7 hours | 0% | 37.07MB |
| core-calltransfer-monitor | 3876 | online | 0 | 3 days, 7 hours | 0% | 30.52MB |
| core-fastagi | 4161 | online | 0 | 3 days, 7 hours | 0.2% | 39.11MB |
| restapps | 18045 | online | 4 | 3 days, 7 hours | 0% | 41.16MB |
| sangomaconnect | 4473 | online | 0 | 3 days, 7 hours | 0.2% | 77.49MB |
| sangomartapi | 4663 | online | 0 | 3 days, 7 hours | 0.2% | 88.10MB |
| ucp | 4769 | online | 0 | 3 days, 7 hours | 0% | 58.93MB |
| qcallback | 4862 | online | 0 | 3 days, 7 hours | 0% | 31.01MB |
| qcallback-events | 4956 | online | 0 | 3 days, 7 hours | 0.2% | 47.79MB |
+---------------------------+-------+--------+----------+-----------------+------+---------+
[root@uc-xx ~]# ps ax | grep node
4161 ? Ssl 9:49 node /var/www/html/admin/modules/core/node/fastagi-server.js
4473 ? Ssl 9:39 node /var/www/html/admin/modules/sangomaconnect/node/index.js
4663 ? Ssl 10:36 node /var/www/html/admin/modules/sangomartapi/node/kickstart.js
4769 ? Ssl 9:11 node /var/www/html/admin/modules/ucp/node/index.js
4956 ? Ssl 10:25 node /var/www/html/admin/modules/vqplus/node/index.js
grepping for node
in your process list is probably the easiest way to see what’s going on.
Also, why do you want to do this? If you want to run something that requires a newer version of node, install in a sandboxed location and don’t overwrite the Sangoma version.
Thanks for that info. Do you know if it can be updated to a newer major version without breaking Freepbx? It’s for doing something that requires a newer version of NodeJS. I suppose could just try it on a test server and see what happens, but I thought I would ask here first.
So apparently NodeJS higher than v16 is not compatible with CE7/SNG7. I ended up installing FPBX17 on Debian 12. That uses NodeJS 18 by default. I then updated to NodeJS 20 which includes the version of npm I wanted (v10.x). FPBX and UCP still seem to work but I haven’t tested it extensively.
FreePBX 16 do not support the latest NodeJS and there was good amount of work done in NodeJS dependent modules in FreePBX 17 to make it compatible with the latest nodejs.
This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.