Skip to content

Commit 1a3d1b1

Browse files
authored
Merge pull request #21594 from abpframework/auto-merge/rel-9-0/3285
Merge branch dev with rel-9.0
2 parents 22f671e + 7f15f1a commit 1a3d1b1

File tree

2 files changed

+5
-4
lines changed

2 files changed

+5
-4
lines changed

framework/src/Volo.Abp.Cli.Core/Volo/Abp/Cli/LIbs/InstallLibsService.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff 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);

framework/src/Volo.Abp.Cli.Core/Volo/Abp/Cli/Utils/NpmHelper.cs

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
using System;
2+
using System.Collections.Generic;
23
using System.Linq;
34
using Microsoft.Extensions.Logging;
45
using 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)

0 commit comments

Comments
 (0)