diff --git a/ng-dev/release/publish/external-commands.ts b/ng-dev/release/publish/external-commands.ts index 84a21a4ec..ee288cb36 100644 --- a/ng-dev/release/publish/external-commands.ts +++ b/ng-dev/release/publish/external-commands.ts @@ -209,7 +209,10 @@ export abstract class ExternalCommands { }); if (!quiet) { - const {stdout: nodeVersion} = await ChildProcess.spawn('node', ['--version']); + const {stdout: nodeVersion} = await ChildProcess.spawn('node', ['--version'], { + mode: 'silent', + cwd: projectDir, + }); Log.info(green(` ✓ Set node version to ${nodeVersion}.`)); } } catch (e) {