Hide Forgot
This bug was initially created as a copy of Bug #1647239 I am copying this bug because: This issue came back with the latest builds: #> ls -l /usr/lib/node_modules/npm/node_modules/@npmcli/run-script/lib/node-gyp-bin/node-gyp -rw-r--r--. 1 root root 51 Oct 12 03:52 /usr/lib/node_modules/npm/node_modules/@npmcli/run-script/lib/node-gyp-bin/node-gyp #> rpm -qf /usr/lib/node_modules/npm/node_modules/@npmcli/run-script/lib/node-gyp-bin/node-gyp npm-8.0.0-1.16.11.1.1.fc35.x86_64 Description of problem: Script files in the bin directories are missing execute permissions, which in turn causes build failures on some packages that require some building (like unix-dgram). The following need to be made executable for things to work again: /usr/lib/node_modules/npm/node_modules/npm-lifecycle/node-gyp-bin/node-gyp /usr/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js Version-Release number of selected component (if applicable): 6.4.1 How reproducible: 100% Steps to Reproduce: 1. Try and install unix-dgram with factor NPM 2. Notice it fails to compile because these scripts Actual results: % npm install > unix-dgram@2.0.2 install /home/stieg/Devel/airfordable/test/node_modules/unix-dgram > node-gyp rebuild sh: /usr/lib/node_modules/npm/node_modules/npm-lifecycle/node-gyp-bin/node-gyp: Permission denied npm WARN test@1.0.0 No repository field. Expected results: DGram builds as expected Workaround: $ sudo chmod 755 /usr/lib/node_modules/npm/node_modules/npm-lifecycle/node-gyp-bin/node-gyp /usr/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js
It results in some gyp-built extensions to fail to install: #> npm install -g node-rdkafka npm notice npm notice New minor version of npm available! 8.0.0 -> 8.1.4 npm notice Changelog: https://github.com/npm/cli/releases/tag/v8.1.4 npm notice Run npm install -g npm@8.1.4 to update! npm notice npm ERR! code 126 npm ERR! path /usr/local/lib/node_modules/node-rdkafka npm ERR! command failed npm ERR! command sh -c node-gyp rebuild npm ERR! sh: line 1: /usr/lib/node_modules/npm/node_modules/@npmcli/run-script/lib/node-gyp-bin/node-gyp: Permission denied npm ERR! A complete log of this run can be found in: npm ERR! /root/.npm/_logs/2021-11-25T10_24_14_089Z-debug.log
Modules in Fedora have the same issue it seems, so, please, do not forget to fix them as well.
It seems to be fixed in RHEL9/CentOS Stream 9: https://gitlab.com/redhat/centos-stream/rpms/nodejs/-/blob/c9s/nodejs.spec#L570
PR prepared for rawhide: https://src.fedoraproject.org/rpms/nodejs/pull-request/11 Please, apply to other branches as well.
FEDORA-MODULAR-2021-9289924978 has been submitted as an update to Fedora 35 Modular. https://bodhi.fedoraproject.org/updates/FEDORA-MODULAR-2021-9289924978
FEDORA-2021-c5617f9f9c has been submitted as an update to Fedora 35. https://bodhi.fedoraproject.org/updates/FEDORA-2021-c5617f9f9c
FEDORA-MODULAR-2021-c0be60569a has been submitted as an update to Fedora 34 Modular. https://bodhi.fedoraproject.org/updates/FEDORA-MODULAR-2021-c0be60569a
FEDORA-2021-c5617f9f9c has been pushed to the Fedora 35 testing repository. Soon you'll be able to install the update with the following command: `sudo dnf upgrade --enablerepo=updates-testing --advisory=FEDORA-2021-c5617f9f9c` You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-2021-c5617f9f9c See also https://fedoraproject.org/wiki/QA:Updates_Testing for more information on how to test updates.
FEDORA-MODULAR-2021-9289924978 has been pushed to the Fedora 35 Modular testing repository. You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-MODULAR-2021-9289924978 See also https://fedoraproject.org/wiki/QA:Updates_Testing for more information on how to test updates.
FEDORA-MODULAR-2021-c0be60569a has been pushed to the Fedora 34 Modular testing repository. You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-MODULAR-2021-c0be60569a See also https://fedoraproject.org/wiki/QA:Updates_Testing for more information on how to test updates.
FEDORA-2021-c5617f9f9c has been pushed to the Fedora 35 stable repository. If problem still persists, please make note of it in this bug report.
FEDORA-MODULAR-2021-c0be60569a has been pushed to the Fedora 34 Modular stable repository. If problem still persists, please make note of it in this bug report.
FEDORA-MODULAR-2021-9289924978 has been pushed to the Fedora 35 Modular stable repository. If problem still persists, please make note of it in this bug report.