Group :: Development/Tools
RPM: npm
Main Changelog Spec Patches Sources Download Gear Bugs e FR Repocop
Patch: npm-disable-internal-node-gyp.patch
Download
Download
diff --git a/npm/node_modules/@npmcli/run-script/lib/make-spawn-args.js b/npm/node_modules/@npmcli/run-script/lib/make-spawn-args.js
index 2b2f96a9..2a10fc66 100644
--- a/npm/node_modules/@npmcli/run-script/lib/make-spawn-args.js
+++ b/npm/node_modules/@npmcli/run-script/lib/make-spawn-args.js
@@ -1,7 +1,6 @@
/* eslint camelcase: "off" */
const setPATH = require('./set-path.js')
const { resolve } = require('path')
-const npm_config_node_gyp = require.resolve('node-gyp/bin/node-gyp.js')
const makeSpawnArgs = options => {
const {
@@ -23,7 +22,6 @@ const makeSpawnArgs = options => {
npm_package_json: resolve(path, 'package.json'),
npm_lifecycle_event: event,
npm_lifecycle_script: cmd,
- npm_config_node_gyp,
})
const spawnOpts = {
diff --git a/npm/node_modules/@npmcli/run-script/lib/set-path.js b/npm/node_modules/@npmcli/run-script/lib/set-path.js
index c59c270d..b328e2f7 100644
--- a/npm/node_modules/@npmcli/run-script/lib/set-path.js
+++ b/npm/node_modules/@npmcli/run-script/lib/set-path.js
@@ -1,7 +1,4 @@
const { resolve, dirname, delimiter } = require('path')
-// the path here is relative, even though it does not need to be
-// in order to make the posix tests pass in windows
-const nodeGypPath = resolve(__dirname, '../lib/node-gyp-bin')
// Windows typically calls its PATH environ 'Path', but this is not
// guaranteed, nor is it guaranteed to be the only one. Merge them
@@ -26,7 +23,7 @@ const setPATH = (projectPath, binPaths, env) => {
pp = p
p = dirname(p)
} while (p !== pp)
- pathArr.push(nodeGypPath, PATH)
+ pathArr.push(PATH)
const pathVal = pathArr.join(delimiter)