Browse Source

add ` --depth 0` paramter for `npm list` command.

pull/12782/head
maliming 4 years ago
committed by GitHub
parent
commit
567bf78295
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
  1. 2
      framework/src/Volo.Abp.Cli.Core/Volo/Abp/Cli/LIbs/InstallLibsService.cs

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

@ -253,7 +253,7 @@ public class InstallLibsService : IInstallLibsService, ITransientDependency
private bool IsYarnAvailable()
{
var output = CmdHelper.RunCmdAndGetOutput("npm list yarn -g").Trim();
var output = CmdHelper.RunCmdAndGetOutput("npm list yarn -g --depth 0").Trim();
if (output.Contains("empty"))
{
return false;

Loading…
Cancel
Save