We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 5209336 commit 1decb61Copy full SHA for 1decb61
lib_dev/process.js
@@ -1,8 +1,11 @@
1
import * as child_process from "node:child_process";
2
import * as fs from "node:fs/promises";
3
import * as path from "node:path";
4
+import { execPath } from "node:process";
5
import { bsc_exe, rescript_legacy_exe } from "#cli/bins";
6
7
+const npmBin = path.join(path.dirname(execPath), "npm");
8
+
9
/**
10
* @typedef {{
11
* throwOnFail?: boolean,
@@ -252,7 +255,7 @@ export function setup(cwd = process.cwd()) {
252
255
* @return {Promise<ExecResult>}
253
256
*/
254
257
npm(args = [], options = {}) {
- return exec("npm", args, options);
258
+ return exec(npmBin, args, options);
259
},
260
};
261
}
0 commit comments