7d86b7301d
Signed-off-by: Stephen Gallagher <sgallagh@redhat.com>
27 lines
1004 B
Diff
27 lines
1004 B
Diff
From d5f88f988423c6304549eb2724b05c9344b0b88b Mon Sep 17 00:00:00 2001
|
|
From: Stephen Gallagher <sgallagh@redhat.com>
|
|
Date: Mon, 28 Oct 2019 13:24:57 -0400
|
|
Subject: [PATCH 2/3] Use /etc/npmrc for the default configuration
|
|
|
|
Signed-off-by: Stephen Gallagher <sgallagh@redhat.com>
|
|
---
|
|
deps/npm/lib/config/defaults.js | 2 +-
|
|
1 file changed, 1 insertion(+), 1 deletion(-)
|
|
|
|
diff --git a/deps/npm/lib/config/defaults.js b/deps/npm/lib/config/defaults.js
|
|
index 57d373df1e10c349142e14fa9e4bbc95b7df79e3..0ffe6aed8562070cd1d021010b13bef30bac8763 100644
|
|
--- a/deps/npm/lib/config/defaults.js
|
|
+++ b/deps/npm/lib/config/defaults.js
|
|
@@ -153,7 +153,7 @@ Object.defineProperty(exports, 'defaults', {get: function () {
|
|
'commit-hooks': true,
|
|
|
|
global: false,
|
|
- globalconfig: path.resolve(globalPrefix, 'etc', 'npmrc'),
|
|
+ globalconfig: '/etc/npmrc',
|
|
'global-style': false,
|
|
group: process.platform === 'win32' ? 0
|
|
: process.env.SUDO_GID || (process.getgid && process.getgid()),
|
|
--
|
|
2.23.0
|
|
|