diff --git a/tools/cli/commands.js b/tools/cli/commands.js index c5537997d4..68284a9239 100644 --- a/tools/cli/commands.js +++ b/tools/cli/commands.js @@ -837,12 +837,15 @@ main.registerCommand({ // the packages (or maybe an unpredictable subset based on what happens to be // in the template's versions file). - // Since some of the project skeletons include npm `devDependencies`, we need - // to make sure they're included when running `npm install`. - require("./default-npm-deps.js").install( - appPath, - { includeDevDependencies: true } - ); + const isWindows = process.platform === "win32"; + if (!isWindows) { + // Since some of the project skeletons include npm `devDependencies`, we need + // to make sure they're included when running `npm install`. + require("./default-npm-deps.js").install( + appPath, + {includeDevDependencies: true} + ); + } var appNameToDisplay = appPathAsEntered === "." ? "current directory" : `'${appPathAsEntered}'`; @@ -873,6 +876,10 @@ main.registerCommand({ cmd("cd " + appPathWithQuotesIfSpaces); } + if (isWindows) { + cmd("meteor npm install"); + } + cmd("meteor"); Console.info("");