nodejs20/0002-Use-etc-npmrc-for-the-default-configuration.patch
Stephen Gallagher ed04b00a69
Update to 12.13.0 (LTS)
- https://github.com/nodejs/node/blob/v12.13.0/doc/changelogs/CHANGELOG_V12.md
- NPM no longer clobbers RPM-installed Node.js modules
- Drop no-longer needed patch to suppress `npm update -g npm` message

Signed-off-by: Stephen Gallagher <sgallagh@redhat.com>
2019-10-28 13:59:21 -04:00

27 lines
1003 B
Diff

From 194e21ab7bb3faf34211a0f9474755064cb8d579 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..c0e2926ac5af12582fa3b4a4a48804fe5a9cea68 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