You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
gentoo-overlay/net-libs/nodejs/files/nodejs-15.2.0-global-npm-co...

14 lines
582 B

--- a/deps/npm/node_modules/@npmcli/config/lib/index.js
+++ b/deps/npm/node_modules/@npmcli/config/lib/index.js
@@ -275,8 +275,9 @@
// default the globalconfig file to that location, instead of the default
// global prefix. It's weird that `npm get globalconfig --prefix=/foo`
// returns `/foo/etc/npmrc`, but better to not change it at this point.
+ // gentoo deviates wrt global config; store in /etc/npm
settableGetter(data, 'globalconfig', () =>
- resolve(this[_get]('prefix'), 'etc/npmrc'))
+ resolve('/etc', 'npmrc'))
}
loadHome () {