mirror of
https://github.com/pnpm/pnpm.git
synced 2026-05-13 19:16:21 -04:00
Merge pull request #318 from davej/feature/use-current-node-in-child-scripts
fix(post-install): prefer current node interpreter in child scripts (Fixes #296)
This commit is contained in:
@@ -56,6 +56,7 @@ function runScript (command, args, opts) {
|
||||
env.PATH = [
|
||||
join(opts.cwd, 'node_modules', '.bin'),
|
||||
dirname(require.resolve('../../bin/node-gyp-bin/node-gyp')),
|
||||
dirname(process.execPath),
|
||||
process.env.PATH
|
||||
].join(delimiter)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user