Fix yarn (fix #403)

This commit is contained in:
Roey Darwish Dror
2020-05-10 06:45:39 +03:00
parent 6cddd57850
commit 9f8fbf6d65
2 changed files with 8 additions and 1 deletions

View File

@@ -53,7 +53,7 @@ pub fn run_npm_upgrade(_base_dirs: &BaseDirs, run_type: RunType) -> Result<()> {
pub fn yarn_global_update(run_type: RunType) -> Result<()> {
let yarn = require("yarn")?;
let output = Command::new(&yarn).arg("version").check_output()?;
let output = Command::new(&yarn).arg("version").string_output()?;
if output.contains("Hadoop") {
debug!("Yarn is Hadoop yarn");
return Err(SkipStep.into());