From 567bf782950537efea8bdcd6184820cc5d7930d7 Mon Sep 17 00:00:00 2001 From: maliming Date: Fri, 27 May 2022 13:21:05 +0800 Subject: [PATCH] add ` --depth 0` paramter for `npm list` command. --- .../Volo.Abp.Cli.Core/Volo/Abp/Cli/LIbs/InstallLibsService.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/framework/src/Volo.Abp.Cli.Core/Volo/Abp/Cli/LIbs/InstallLibsService.cs b/framework/src/Volo.Abp.Cli.Core/Volo/Abp/Cli/LIbs/InstallLibsService.cs index 3984f0ca08..56fa776904 100644 --- a/framework/src/Volo.Abp.Cli.Core/Volo/Abp/Cli/LIbs/InstallLibsService.cs +++ b/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;