Browse Source
add ` --depth 0` paramter for `npm list` command.
pull/12782/head
maliming
4 years ago
committed by
GitHub
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with
1 additions and
1 deletions
-
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; |
|
|
|
|