File tree 1 file changed +3
-3
lines changed
packages/angular-cli/upgrade
1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -105,11 +105,11 @@ export class Version {
105
105
if ( v . isLocal ( ) ) {
106
106
console . warn ( yellow ( 'Using a local version of angular. Proceeding with care...' ) ) ;
107
107
} else {
108
- if ( v . major != 2 || ( ( v . minor == 3 && v . patch == 0 ) || v . minor < 3 ) ) {
108
+ if ( v . major < 2 || ( v . major < 2 && v . minor < 3 ) || ( v . major < 2 && v . minor < 3 && v . patch < 1 ) ) {
109
109
console . error ( bold ( red ( stripIndents `
110
110
This version of CLI is only compatible with angular version 2.3.1 or better. Please
111
111
upgrade your angular version, e.g. by running:
112
-
112
+
113
113
npm install @angular/core@latest
114
114
` + '\n' ) ) ) ;
115
115
process . exit ( 3 ) ;
@@ -129,7 +129,7 @@ export class Version {
129
129
It seems like you're using a project generated using an old version of the Angular CLI.
130
130
The latest CLI now uses webpack and has a lot of improvements including a simpler
131
131
workflow, a faster build, and smaller bundles.
132
-
132
+
133
133
To get more info, including a step-by-step guide to upgrade the CLI, follow this link:
134
134
https://github.com/angular/angular-cli/wiki/Upgrading-from-Beta.10-to-Beta.14
135
135
` + '\n' ) ) ) ;
You can’t perform that action at this time.
0 commit comments