diff --git a/packages/nx/src/command-line/init/init-v2.ts b/packages/nx/src/command-line/init/init-v2.ts index 725a49c4b075e..0cbe3d07cfeeb 100644 --- a/packages/nx/src/command-line/init/init-v2.ts +++ b/packages/nx/src/command-line/init/init-v2.ts @@ -51,7 +51,7 @@ export async function initHandler(options: InitArgs): Promise { generateDotNxSetup(version); const { plugins } = await detectPlugins(); plugins.forEach((plugin) => { - execSync(`./nx add ${plugin}`, { + runNxSync(`add ${plugin}`, { stdio: 'inherit', }); });