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 454cede commit 9936862Copy full SHA for 9936862
lib_dev/process.js
@@ -255,8 +255,8 @@ export function setup(cwd = process.cwd()) {
255
// Use node to run npm directly since npm might not be in PATH
256
const nodePath = process.execPath;
257
const nodeDir = path.dirname(nodePath);
258
- const npmPath = path.join(nodeDir, 'npm');
259
-
+ const npmPath = path.join(nodeDir, "npm");
+
260
try {
261
// Try to use npm from the same directory as node
262
await fs.access(npmPath);
@@ -265,7 +265,7 @@ export function setup(cwd = process.cwd()) {
265
} catch (err) {
266
console.log(`npm not found in Node.js directory: ${err.message}`);
267
}
268
269
// Fallback to direct npm execution
270
return exec("npm", args, options);
271
},
0 commit comments