diff --git a/build.rs b/build.rs index a6d2b5e9..4f2b7973 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)