diff --git a/build.rs b/build.rs index 357fb0d4..6c51c625 100644 --- a/build.rs +++ b/build.rs @@ -90,6 +90,10 @@ fn build_with_yarn() { // Build with YARN let frontend_dir = Path::new("./src/stream/webrtc/frontend"); frontend_dir.try_exists().unwrap(); + Command::new("yarn") + .args(["--version"]) + .status() + .expect("Failed to build frontend, `yarn` appears to be not installed."); Command::new("yarn") .args(["install"]) .current_dir(frontend_dir)