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

pull/12782/head
maliming 3 years ago committed by GitHub
parent 5804c88024
commit 567bf78295
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -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