We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
ng new
1 parent 42758b9 commit 0d6d1bfCopy full SHA for 0d6d1bf
packages/angular/cli/lib/init.ts
@@ -33,17 +33,17 @@ let forceExit = false;
33
* See: https://github.com/browserslist/browserslist/blob/819c4337456996d19db6ba953014579329e9c6e1/node.js#L324
34
*/
35
process.env.BROWSERSLIST_IGNORE_OLD_DATA = '1';
36
+ const rawCommandName = process.argv[2];
37
38
/**
39
* Disable CLI version mismatch checks and forces usage of the invoked CLI
40
* instead of invoking the local installed version.
41
- if (disableVersionCheck) {
42
+ if (disableVersionCheck || rawCommandName === 'new') {
43
return (await import('./cli')).default;
44
}
45
46
let cli;
- const rawCommandName = process.argv[2];
47
48
try {
49
// No error implies a projectLocalCli, which will load whatever
0 commit comments