From 6a9e55e76169bc55cb5185fa2ff4dea85f610a9e Mon Sep 17 00:00:00 2001 From: filipenevola Date: Wed, 10 Mar 2021 14:05:44 -0400 Subject: [PATCH] Revert "Workaround to avoid installing npm when creating a new project on Windows (Fixes #11040)" This reverts commit f7ea6a52 --- tools/cli/commands.js | 19 ++++++------------- 1 file changed, 6 insertions(+), 13 deletions(-) diff --git a/tools/cli/commands.js b/tools/cli/commands.js index 68284a9239..c5537997d4 100644 --- a/tools/cli/commands.js +++ b/tools/cli/commands.js @@ -837,15 +837,12 @@ main.registerCommand({ // the packages (or maybe an unpredictable subset based on what happens to be // in the template's versions file). - 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} - ); - } + // 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}'`; @@ -876,10 +873,6 @@ main.registerCommand({ cmd("cd " + appPathWithQuotesIfSpaces); } - if (isWindows) { - cmd("meteor npm install"); - } - cmd("meteor"); Console.info("");