FreePBX / sng_freepbx_debian_install

FreePBX 17 Installation Script
81 stars 26 forks source link

[bug]: npm deprecation warnings #9

Open Af0x opened 5 months ago

Af0x commented 5 months ago

FreePBX Version

FreePBX 17

Issue Description

Following npm deprecation warnings are in my logs.

Operating Environment

Fresh Debian 12, FreePBX installation with Beta skript

Relevant log output

npm WARN deprecated is-buffer@1.0.2: This version of 'is-buffer' is out-of-date. You must update to v1.1.6 or newer

npm WARN deprecated nomnom@1.8.1: Package no longer supported. Contact support@npmjs.com for more info.
kguptasangoma commented 5 months ago

Hi @Af0x

For which module installation you got these npm warning? Could you please share more details?

Thanks

Af0x commented 5 months ago
Checking ucp...
Signature Invalid
    Refreshing ucp
Starting module download from https://mirror.freepbx.org/modules/packages/ucp/ucp-17.0.4.12.tgz.gpg ...
Processing 
Downloading...
       0/4470089 [>---------------------------]   0%
  447456/4470089 [==>-------------------------]  10%
  894464/4470089 [=====>----------------------]  20%
 1341472/4470089 [========>-------------------]  30%
 2235632/4470089 [==============>-------------]  50%
 3129648/4470089 [===================>--------]  70%
 4470089/4470089 [============================] 100%
Finished downloading
Extracting...Done
Module https://mirror.freepbx.org/modules/packages/ucp/ucp-17.0.4.12.tgz.gpg successfully downloaded
Updating tables ucp_sessions...Done
System : debian
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
npm WARN deprecated is-buffer@1.0.2: This version of 'is-buffer' is out-of-date. You must update to v1.1.6 or newer
npm WARN deprecated nomnom@1.8.1: Package no longer supported. Contact support@npmjs.com for more info.
Installed npm-cache v0.7.0
Running installation..
[npm-cache] [INFO] using /home/asterisk/.package_cache as cache directory
[npm-cache] [INFO] [composer] Dependency config file /var/www/html/admin/modules/ucp/node/composer.json does not exist. Skipping install
[npm-cache] [INFO] [npm] config file exists
[npm-cache] [INFO] [npm] cli exists
[npm-cache] [INFO] [npm] hash of /var/www/html/admin/modules/ucp/node/package.json: f05cb602e1e1d71218102eca2200f753
[npm-cache] [INFO] [npm] cache exists
[npm-cache] [INFO] [npm] clearing installed dependencies at /var/www/html/admin/modules/ucp/node/node_modules
[npm-cache] [INFO] [npm] ...cleared
[npm-cache] [INFO] [npm] retrieving dependencies from /home/asterisk/.package_cache/npm/9.2.0/f05cb602e1e1d71218102eca2200f753.tar.gz
[npm-cache] [INFO] [bower] Dependency config file /var/www/html/admin/modules/ucp/node/bower.json does not exist. Skipping install
[npm-cache] [INFO] [npm] done extracting
[npm-cache] [INFO] successfully installed all dependencies
Af0x commented 5 months ago

ealier in the install log

Installing FreePBX 17 modules..
Installing: pbxmfa, restapps, sangomaconnect, sangomartapi, setcid, sipstation, sms, smsplus, ucp, webrtc
Installing pbxmfa...
Detected Missing Dependency of: ucp 17.0.1
Found local Dependency of: ucp 17.0.4.12
Installing Missing Dependency of: ucp 17.0.1
Updating tables ucp_sessions...Done
System : debian
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
npm WARN deprecated is-buffer@1.0.2: This version of 'is-buffer' is out-of-date. You must update to v1.1.6 or newer
npm WARN deprecated nomnom@1.8.1: Package no longer supported. Contact support@npmjs.com for more info.
Installed npm-cache v0.7.0
Running installation..
[npm-cache] [INFO] using /home/asterisk/.package_cache as cache directory
[npm-cache] [INFO] [composer] Dependency config file /var/www/html/admin/modules/ucp/node/composer.json does not exist. Skipping install
[npm-cache] [INFO] [npm] config file exists
[npm-cache] [INFO] [npm] cli exists
[npm-cache] [INFO] [npm] hash of /var/www/html/admin/modules/ucp/node/package.json: f05cb602e1e1d71218102eca2200f753
[npm-cache] [INFO] [npm] running [npm install]...
npm WARN deprecated har-validator@5.1.5: this library is no longer supported
npm WARN deprecated node-xmpp-tls-connect@1.0.1: this package is deprecated please use https://github.com/xmppjs/xmpp.js
npm WARN deprecated node-xmpp-core@5.0.9: this package is deprecated please use https://github.com/xmppjs/xmpp.js
npm WARN deprecated uuid@3.4.0: Please upgrade  to version 7 or higher.  Older versions may use Math.random() in certain circumstances, which is known to be problematic.  See https://v8.dev/blog/math-random for details.
npm WARN deprecated node-uuid@1.4.8: Use uuid module instead
npm WARN deprecated request@2.88.2: request has been deprecated, see https://github.com/request/request/issues/3142
npm WARN deprecated node-xmpp-client@3.2.0: this package is deprecated please use https://www.npmjs.com/package/@xmpp/client

added 161 packages, and audited 162 packages in 10s

14 packages are looking for funding
  run `npm fund` for details

3 moderate severity vulnerabilities

Some issues need review, and may require choosing
a different dependency.

Run `npm audit` for details.
[npm-cache] [INFO] [npm] installed npm dependencies, now archiving
[npm-cache] [INFO] [npm] archiving dependencies from /var/www/html/admin/modules/ucp/node/node_modules
[npm-cache] [INFO] [bower] Dependency config file /var/www/html/admin/modules/ucp/node/bower.json does not exist. Skipping install
[npm-cache] [INFO] [npm] installed and archived dependencies
[npm-cache] [INFO] successfully installed all dependencies
Af0x commented 5 months ago

and this

Installing sangomaconnect...
Detected Missing Dependency of: sms 17.0.1
Found local Dependency of: sms 17.0.1.5
Installing Missing Dependency of: sms 17.0.1
Updating tables sms_messages, sms_dids, sms_routing, sms_media, sms_webhooks...Done
Generating CSS...Done
Installed Missing Dependency of: sms 17.0.1
Detected Missing Dependency of: webrtc 17.0.1
Found local Dependency of: webrtc 17.0.2.1
Installing Missing Dependency of: webrtc 17.0.1
Updating tables webrtc_clients...Done
Generating CSS...Done
Installed Missing Dependency of: webrtc 17.0.1
Updating tables sangomaconnect_user_pre_setup, sangomaconnect_user_setup, sangomaconnect_user_device, sangomaconnect_sngphone_sms_routing, sangomaconnect_phone_locations, sangomaconnect_account_phone_locations...Done
Changing Websocket Mode to PJSIP
Increasing HTTP Session Limit
No PBXID file found, not registering module to cloud.
Checking module cloud activation status
System not activated, cannot perform cloud activation
Initializing node dependencies
Found npm-cache v0.7.0
Running installation..
[npm-cache] [INFO] using /home/asterisk/.package_cache as cache directory
[npm-cache] [INFO] [composer] Dependency config file /var/www/html/admin/modules/sangomaconnect/node/composer.json does not exist. Skipping install
[npm-cache] [INFO] [npm] config file exists
[npm-cache] [INFO] [npm] cli exists
[npm-cache] [INFO] [npm] hash of /var/www/html/admin/modules/sangomaconnect/node/package.json: a386f4a77785ce2c5562d106a52cef80
[npm-cache] [INFO] [npm] running [npm install]...
npm WARN deprecated uuid@3.4.0: Please upgrade  to version 7 or higher.  Older versions may use Math.random() in certain circumstances, which is known to be problematic.  See https://v8.dev/blog/math-random for details.

added 89 packages, and audited 90 packages in 8s

15 packages are looking for funding
  run `npm fund` for details

found 0 vulnerabilities
[npm-cache] [INFO] [npm] installed npm dependencies, now archiving
[npm-cache] [INFO] [npm] archiving dependencies from /var/www/html/admin/modules/sangomaconnect/node/node_modules
[npm-cache] [INFO] [bower] Dependency config file /var/www/html/admin/modules/sangomaconnect/node/bower.json does not exist. Skipping install
[npm-cache] [INFO] [npm] installed and archived dependencies
[npm-cache] [INFO] successfully installed all dependencies

Finished updating libraries!
SangomaConnect Server is not running
SangomaConnect module installed but not activated. Please buy a license and activate the module
Generating CSS...Done
Module sangomaconnect version 17.0.1.11 successfully installed
Updating Hooks...Done
Chowning directories...Done