-
Notifications
You must be signed in to change notification settings - Fork 346
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Snap-installed nodejs fails to install web-ext globally #2267
Comments
@SeburoSUMO I'm currently unable to reproduce this using the snap package installed on Ubuntu 20.04.2 (web-ext was installed globally just fine and the core-js message was printed on the console. Based on the stack trace I would guess that on your system it did fail to execute the I'm going to give it another try on an ubuntu 21.04 installation (in a virtual machine) as soon as I can, but in the meantime would you mind to double-check if At the moment, the only thing that I can think of that could trigger that issue is the root user not having |
@rpl, it does appear that
|
@SeburoSUMO I've been able to reproduce it on a vanilla Xubuntu 21.04 system installed in a VM. The issue seems to be due to snap confinement (even if technically this snap package has to be installed using I did find the following issues (and one pull request in the snapd repo) related to the issue with snap-packaged nodejs:
There is also a workaround that make the snap-packaged nodejs to work just fine, the details are described in this nodejs doc page: https://docs.npmjs.com/resolving-eacces-permissions-errors-when-installing-packages-globally#manually-change-npms-default-directory. In practice the workaround prevents the issue because it does configure npm to put the global installed packages into a directory where the user does have read-write permissions and no apparmor rule would block the npm installation to complete successfully. |
Is this a feature request or a bug?
Bug
What is the current behavior?
sudo npm install --global web-ext
Failed at the [email protected] postinstall script
. Full log attached at 2021-06-14T20_15_57_535Z-debug.logWhat is the expected or desired behavior?
web-ext installs without error
Version information (for bug reports)
v14.17.0
6.14.13
web-ext: command not found
The text was updated successfully, but these errors were encountered: