We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
ng version
1 parent da32daa commit 88ee85cCopy full SHA for 88ee85c
packages/angular/cli/commands/version-impl.ts
@@ -182,7 +182,16 @@ export class VersionCommand extends Command<VersionCommandSchema> {
182
private async getPackageManager(): Promise<string> {
183
try {
184
const manager = await getPackageManager(this.context.root);
185
- const version = execSync(`${manager} --version`, { encoding: 'utf8', stdio: 'pipe' }).trim();
+ const version = execSync(`${manager} --version`, {
186
+ encoding: 'utf8',
187
+ stdio: ['ignore', 'pipe', 'ignore'],
188
+ env: {
189
+ ...process.env,
190
+ // NPM updater notifier will prevents the child process from closing until it timeout after 3 minutes.
191
+ NO_UPDATE_NOTIFIER: '1',
192
+ NPM_CONFIG_UPDATE_NOTIFIER: 'false',
193
+ },
194
+ }).trim();
195
196
return `${manager} ${version}`;
197
} catch {
0 commit comments