File tree Expand file tree Collapse file tree 3 files changed +9
-9
lines changed Expand file tree Collapse file tree 3 files changed +9
-9
lines changed Original file line number Diff line number Diff line change 99
99
// Don't show warning colorised on `ng completion`
100
100
if ( process . argv [ 2 ] !== 'completion' ) {
101
101
// eslint-disable-next-line no-console
102
- console . log ( warning ) ;
102
+ console . error ( warning ) ;
103
103
} else {
104
104
// eslint-disable-next-line no-console
105
105
console . error ( warning ) ;
@@ -141,6 +141,6 @@ cli({
141
141
process . exit ( exitCode ) ;
142
142
} )
143
143
. catch ( ( err : Error ) => {
144
- console . log ( 'Unknown error: ' + err . toString ( ) ) ;
144
+ console . error ( 'Unknown error: ' + err . toString ( ) ) ;
145
145
process . exit ( 127 ) ;
146
146
} ) ;
Original file line number Diff line number Diff line change @@ -87,7 +87,7 @@ export class Version {
87
87
const rxjsVersion = new Version ( rxjsPkgJson [ 'version' ] ) ;
88
88
89
89
if ( angularVersion . isLocal ( ) ) {
90
- console . warn ( terminal . yellow ( 'Using a local version of angular. Proceeding with care...' ) ) ;
90
+ console . error ( terminal . yellow ( 'Using a local version of angular. Proceeding with care...' ) ) ;
91
91
92
92
return ;
93
93
}
@@ -175,7 +175,7 @@ export class Version {
175
175
176
176
if ( currentCombo && ! satisfies ( tsVersion , currentCombo . typescript ) ) {
177
177
// First line of warning looks weird being split in two, disable tslint for it.
178
- console . log ( ( terminal . yellow ( '\n' + tags . stripIndent `
178
+ console . error ( ( terminal . yellow ( '\n' + tags . stripIndent `
179
179
@angular/compiler-cli@${ compilerVersion } requires typescript@'${
180
180
currentCombo . typescript } ' but ${ tsVersion } was found instead.
181
181
Using this version can result in undefined behaviour and difficult to debug problems.
Original file line number Diff line number Diff line change @@ -27,16 +27,16 @@ export function checkYarnOrCNPM() {
27
27
. then ( ( data : Array < boolean > ) => {
28
28
const [ isYarnInstalled , isCNPMInstalled ] = data ;
29
29
if ( isYarnInstalled && isCNPMInstalled ) {
30
- console . log ( terminal . yellow ( 'You can `ng config -g cli.packageManager yarn` '
30
+ console . error ( terminal . yellow ( 'You can `ng config -g cli.packageManager yarn` '
31
31
+ 'or `ng config -g cli.packageManager cnpm`.' ) ) ;
32
32
} else if ( isYarnInstalled ) {
33
- console . log ( terminal . yellow ( 'You can `ng config -g cli.packageManager yarn`.' ) ) ;
33
+ console . error ( terminal . yellow ( 'You can `ng config -g cli.packageManager yarn`.' ) ) ;
34
34
} else if ( isCNPMInstalled ) {
35
- console . log ( terminal . yellow ( 'You can `ng config -g cli.packageManager cnpm`.' ) ) ;
35
+ console . error ( terminal . yellow ( 'You can `ng config -g cli.packageManager cnpm`.' ) ) ;
36
36
} else {
37
37
if ( packageManager !== 'default' && packageManager !== 'npm' ) {
38
- console . log ( terminal . yellow ( `Seems that ${ packageManager } is not installed.` ) ) ;
39
- console . log ( terminal . yellow ( 'You can `ng config -g cli.packageManager npm`.' ) ) ;
38
+ console . error ( terminal . yellow ( `Seems that ${ packageManager } is not installed.` ) ) ;
39
+ console . error ( terminal . yellow ( 'You can `ng config -g cli.packageManager npm`.' ) ) ;
40
40
}
41
41
}
42
42
} ) ;
You can’t perform that action at this time.
0 commit comments