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 432dc25 commit e0daf86Copy full SHA for e0daf86
lib_dev/process.js
@@ -292,12 +292,9 @@ export function setup(cwd = process.cwd()) {
292
*/
293
npm(args = [], options = {}) {
294
console.log("the options", options);
295
- return exec(
296
- // "/opt/hostedtoolcache/node/22.19.0/x64/bin/node",
297
- "npm",
298
- args,
299
- options,
300
- );
+ // Always invoke npm via the current Node.js executable to avoid PATH/resolution issues
+ // on different runners or when using Bun to execute this script.
+ return exec(execPath, [npmCli, ...args], options);
301
},
302
};
303
}
0 commit comments