[Pkg-javascript-devel] Bug#1135594: npm: Shouldn't install things in /usr/share/nodejs/node_modules

Jérémy Lal kapouer at melix.org
Sun May 3 11:06:06 BST 2026


Package: npm
Version: 11.12.1~ds1-4
Severity: normal

Dear Maintainer,

dpkg --listfiles npm | grep /usr/share/nodejs/node_modules
/usr/share/nodejs/node_modules
/usr/share/nodejs/node_modules/node-gyp
/usr/share/nodejs/node_modules/node-gyp/bin
/usr/share/nodejs/node_modules/node-gyp/bin/node-gyp.js

this is an unexpected place.
/usr/share/nodejs/node_modules/node-gyp/bin/node-gyp.js -> ../../../../../bin/node-gyp

Should this go in
/usr/share/nodejs/npm/node_modules/node-gyp/bin/node-gyp.js ?

Jérémy


More information about the Pkg-javascript-devel mailing list