Skip to content

Commit 21c1abb

Browse files
authored
Merge pull request #250 from devforth/AdminForth/691
fix: Use 'npm.cmd' for npm path on Windows
2 parents 11d7285 + ea7c587 commit 21c1abb

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)