Node js issues

I have a steady streem of errors from node, I tried to address currently running node 14.21.3 and npm 6.14.18

I tried a suggetion in renisntall stuff is how I got to these version but I likley could uninstall and reinstall something. what is the “right version” this is with freepbx 16.

2023-07-19 17:34 +02:00: Error: Cannot find module ‘ini’
2023-07-19 17:34 +02:00: Require stack:
2023-07-19 17:34 +02:00: - /var/www/html/admin/modules/ucp/node/lib/freepbx.js
2023-07-19 17:34 +02:00: - /var/www/html/admin/modules/ucp/node/index.js
2023-07-19 17:34 +02:00: at Function.Module._resolveFilename (internal/modules/cjs/loader.js:931:15)
2023-07-19 17:34 +02:00: at Module.Hook._require.Module.require (/var/www/html/admin/modules/pm2/node/node_modules/require-in-the-middle/index.js:81:25)
2023-07-19 17:34 +02:00: at require (internal/modules/cjs/helpers.js:107:18)
2023-07-19 17:34 +02:00: at Object. (/var/www/html/admin/modules/ucp/node/lib/freepbx.js:9:9)
2023-07-19 17:34 +02:00: at Module._compile (internal/modules/cjs/loader.js:1114:14)
2023-07-19 17:34 +02:00: at Object.Module._extensions…js (internal/modules/cjs/loader.js:1143:10)
2023-07-19 17:34 +02:00: at Module.load (internal/modules/cjs/loader.js:979:32)
2023-07-19 17:34 +02:00: at Function.Module._load (internal/modules/cjs/loader.js:819:12)
2023-07-19 17:34 +02:00: at Module.require (internal/modules/cjs/loader.js:1003:19)
2023-07-19 17:34 +02:00: at Module.Hook._require.Module.require (/var/www/html/admin/modules/pm2/node/node_modules/require-in-the-middle/index.js:101:39) {
2023-07-19 17:34 +02:00: code: ‘MODULE_NOT_FOUND’,
2023-07-19 17:34 +02:00: requireStack: [
2023-07-19 17:34 +02:00: ‘/var/www/html/admin/modules/ucp/node/lib/freepbx.js’,
2023-07-19 17:34 +02:00: ‘/var/www/html/admin/modules/ucp/node/index.js’
2023-07-19 17:34 +02:00: ]
2023-07-19 17:34 +02:00:

I reinstalled nodejs 10.24.1 now of node not running

the new erros are

2023-07-19 17:49 +02:00: at Function.Module._resolveFilename (internal/modules/cjs/loader.js:636:15)
2023-07-19 17:49 +02:00: at Module.Hook._require.Module.require (/var/www/html/admin/modules/pm2/node/node_modules/require-in-the-middle/index.js:61:29)
2023-07-19 17:49 +02:00: at require (internal/modules/cjs/helpers.js:25:18)
2023-07-19 17:49 +02:00: at Object. (/var/www/html/admin/modules/ucp/node/lib/freepbx.js:9:9)
2023-07-19 17:49 +02:00: at Module._compile (internal/modules/cjs/loader.js:778:30)
2023-07-19 17:49 +02:00: at Object.Module._extensions…js (internal/modules/cjs/loader.js:789:10)
2023-07-19 17:49 +02:00: at Module.load (internal/modules/cjs/loader.js:653:32)
2023-07-19 17:49 +02:00: at tryModuleLoad (internal/modules/cjs/loader.js:593:12)
2023-07-19 17:49 +02:00: at Function.Module._load (internal/modules/cjs/loader.js:585:3)
2023-07-19 17:49 +02:00: at Module.require (internal/modules/cjs/loader.js:692:17) code: ‘MODULE_NOT_FOUND’ }

in /var/www/html/admin/modules/ucp/node

I reinstalled npm install

That created a bunch of node_modules

I believe that fixed it.

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