File tree Expand file tree Collapse file tree 1 file changed +4
-1
lines changed
libraries/rush-lib/src/logic/installManager Expand file tree Collapse file tree 1 file changed +4
-1
lines changed Original file line number Diff line number Diff line change @@ -292,6 +292,9 @@ export class WorkspaceInstallManager extends BaseInstallManager {
292
292
this . rushConfiguration ,
293
293
this . options
294
294
) ;
295
+ if ( colors . enabled ) {
296
+ packageManagerEnv [ 'FORCE_COLOR' ] = '1' ;
297
+ }
295
298
296
299
const commonNodeModulesFolder : string = path . join (
297
300
this . rushConfiguration . commonTempFolder ,
@@ -318,7 +321,7 @@ export class WorkspaceInstallManager extends BaseInstallManager {
318
321
// Run "npm install" in the common folder
319
322
// To ensure that the output is always colored, set the option "--color=always", even when it's piped.
320
323
// Without this argument, certain text that should be colored (such as red) will appear white.
321
- const installArgs : string [ ] = [ 'install' , '--color=always' ] ;
324
+ const installArgs : string [ ] = [ 'install' ] ;
322
325
this . pushConfigurationArgs ( installArgs , options ) ;
323
326
324
327
// eslint-disable-next-line no-console
You can’t perform that action at this time.
0 commit comments