Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/npm/cli.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorKat Marchán <kzm@sykosomatic.org>2017-05-16 05:26:59 +0300
committerRebecca Turner <me@re-becca.org>2017-05-26 04:55:22 +0300
commit2d346e9ba9e64cffffd2bdd0d19a2be2413ebb61 (patch)
tree729854e63bbed0173839e59cbcf9b4426b89dfaf /lib
parent96532ff5f9c7bddf2add0204164e79e9fe6c3616 (diff)
pacote: use the current node + npm to run git installs
Diffstat (limited to 'lib')
-rw-r--r--lib/config/pacote.js3
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/config/pacote.js b/lib/config/pacote.js
index 8fc75dcee..13b7b53f5 100644
--- a/lib/config/pacote.js
+++ b/lib/config/pacote.js
@@ -123,7 +123,8 @@ function prepareAndPack (manifest, dir) {
}
return acc
}, [])
- const child = cp.spawn('npm', [
+ const child = cp.spawn(process.env.NODE || process.execPath, [
+ require.main.filename,
'install',
'--ignore-prepublish',
'--no-progress',