Skip to content

Commit ea7c587

Browse files
author
yaroslav8765
committed
fix: Use 'npm.cmd' for npm path on Windows
1 parent bc837eb commit ea7c587

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

adminforth/commands/createApp/utils.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -312,7 +312,7 @@ async function installDependencies(ctx, cwd) {
312312
const isWindows = process.platform === 'win32';
313313

314314
const nodeBinary = process.execPath;
315-
const npmPath = path.join(path.dirname(nodeBinary), 'npm');
315+
const npmPath = path.join(path.dirname(nodeBinary), isWindows ? 'npm.cmd' : 'npm');
316316
const customDir = ctx.customDir;
317317
if (isWindows) {
318318
const res = await Promise.all([

0 commit comments

Comments
 (0)