File tree Expand file tree Collapse file tree 2 files changed +5
-4
lines changed
framework/src/Volo.Abp.Cli.Core/Volo/Abp/Cli Expand file tree Collapse file tree 2 files changed +5
-4
lines changed Original file line number Diff line number Diff line change @@ -72,7 +72,7 @@ public async Task InstallLibsAsync(string directory)
7272 }
7373 else
7474 {
75- NpmHelper . RunNpmInstall ( projectDirectory ) ;
75+ NpmHelper . RunNpmInstall ( projectDirectory , "--no-audit" ) ;
7676 }
7777 }
7878
@@ -92,7 +92,7 @@ public async Task InstallLibsAsync(string directory)
9292 }
9393 else
9494 {
95- NpmHelper . RunNpmInstall ( projectDirectory ) ;
95+ NpmHelper . RunNpmInstall ( projectDirectory , "--no-audit" ) ;
9696 }
9797
9898 await CleanAndCopyResources ( projectDirectory ) ;
Original file line number Diff line number Diff line change 11using System ;
2+ using System . Collections . Generic ;
23using System . Linq ;
34using Microsoft . Extensions . Logging ;
45using Microsoft . Extensions . Logging . Abstractions ;
@@ -48,10 +49,10 @@ public bool IsYarnAvailable()
4849 return version > SemanticVersion . Parse ( "1.20.0" ) ;
4950 }
5051
51- public void RunNpmInstall ( string directory )
52+ public void RunNpmInstall ( string directory , params string [ ] args )
5253 {
5354 Logger . LogInformation ( $ "Running npm install on { directory } ") ;
54- CmdHelper . RunCmd ( $ "npm install", directory ) ;
55+ CmdHelper . RunCmd ( $ "npm install { args . JoinAsString ( " " ) } ", directory ) ;
5556 }
5657
5758 public void RunYarn ( string directory )
You can’t perform that action at this time.
0 commit comments