You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Cannot install BBB package bbb-webhooks due to npm ERR! unsafe-perm is not a valid npm option. Initial investigation points to npm version troubles. I find unsafe-perm in npm's docs https://docs.npmjs.com/cli/v6/using-npm/config?v=true#unsafe-perm on versions up to 7, but not after. Right now BBB 2.5, 2.6 use npm 8, and we're transitioning to version 9+ for BBB 2.7.
root@droplet-8443:/usr/local/bigbluebutton# apt install bbb-webhooks
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following NEW packages will be installed:
bbb-webhooks
0 upgraded, 1 newly installed, 0 to remove and 0 not upgraded.
Need to get 5386 kB of archives.
After this operation, 19.1 MB of additional disk space will be used.
Get:1 https://ubuntu.bigbluebutton.org/focal-27-dev bigbluebutton-focal/main amd64 bbb-webhooks amd64 1:2.7-3 [5386 kB]
Fetched 5386 kB in 0s (29.1 MB/s)
Selecting previously unselected package bbb-webhooks.
(Reading database ... 234471 files and directories currently installed.)
Preparing to unpack .../bbb-webhooks_1%3a2.7-3_amd64.deb ...
Unpacking bbb-webhooks (1:2.7-3) ...
Setting up bbb-webhooks (1:2.7-3) ...
npm ERR! `unsafe-perm` is not a valid npm option
npm ERR! A complete log of this run can be found in:
npm ERR! /root/.npm/_logs/2023-06-09T10_07_19_200Z-debug-0.log
dpkg: error processing package bbb-webhooks (--configure):
installed bbb-webhooks package post-installation script subprocess returned error exit status 1
Errors were encountered while processing:
bbb-webhooks
E: Sub-process /usr/bin/dpkg returned an error code (1)
Describe the bug
Cannot install BBB package
bbb-webhooks
due tonpm ERR!
unsafe-permis not a valid npm option
. Initial investigation points tonpm
version troubles. I findunsafe-perm
in npm's docs https://docs.npmjs.com/cli/v6/using-npm/config?v=true#unsafe-perm on versions up to 7, but not after. Right now BBB 2.5, 2.6 use npm 8, and we're transitioning to version 9+ for BBB 2.7.It is part of the after-install script:
npm config set unsafe-perm true
https://github.com/bigbluebutton/bigbluebutton/blob/v2.6.x-release/build/packages-template/bbb-webhooks/after-install.sh#L24
Console output
Additional context
Also reported in https://groups.google.com/g/bigbluebutton-dev/c/11RlUkG0yh8/m/PA9s6cg2AgAJ
A fix will have to be propagated to BBB 2.5 too.
The text was updated successfully, but these errors were encountered: