Browse Source

Merge pull request #12782 from abpframework/maliming-patch-npm

add ` --depth 0` paramter for `npm list` command.
pull/12784/head
Yunus Emre Kalkan 4 years ago
committed by GitHub
parent
commit
e9f628cdeb
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() 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")) if (output.Contains("empty"))
{ {
return false; return false;

Loading…
Cancel
Save