nodejs-22.2.0-global-npm-config.patch 600 B

123456789101112
  1. --- a/deps/npm/node_modules/@npmcli/config/lib/index.js.orig 2024-05-21 15:13:51.786969055 -0700
  2. +++ b/deps/npm/node_modules/@npmcli/config/lib/index.js 2024-05-21 15:17:08.005323625 -0700
  3. @@ -290,7 +290,7 @@ class Config {
  4. // define a custom getter, but turn into a normal prop
  5. // if we set it. otherwise it can't be set on child objects
  6. Object.defineProperty(data, 'globalconfig', {
  7. - get: () => resolve(this.#get('prefix'), 'etc/npmrc'),
  8. + get: () => resolve('/etc', 'npmrc'),
  9. set (value) {
  10. Object.defineProperty(data, 'globalconfig', {
  11. value,