Skip to content

Commit 7179d56

Browse files
committed
shim and stuff
1 parent 9ed6067 commit 7179d56

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

lib_dev/process.js

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -22,9 +22,8 @@ function resolveBin(bin) {
2222
}
2323
}
2424

25-
const nodeBin = process.execPath;
2625
const npmCli = path.join(
27-
path.dirname(nodeBin),
26+
path.dirname(process.execPath),
2827
"../lib/node_modules/npm/bin/npm-cli.js",
2928
);
3029

@@ -284,7 +283,7 @@ export function setup(cwd = process.cwd()) {
284283
* @return {Promise<ExecResult>}
285284
*/
286285
npm(args = [], options = {}) {
287-
return exec(nodeBin, [npmCli, ...args], options);
286+
return exec("node", [npmCli, ...args], options);
288287
},
289288
};
290289
}

0 commit comments

Comments
 (0)