From 1bb871b9acd021b7b05865e7317f03a1310e70b0 Mon Sep 17 00:00:00 2001 From: Alex Jurkiewicz Date: Thu, 10 Oct 2024 23:27:22 +0800 Subject: [PATCH] fix(script/bootstrap): Improve missing Yarn error (#22308) --- script/bootstrap | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/script/bootstrap b/script/bootstrap index 73e44806f9..50dae6f6d8 100755 --- a/script/bootstrap +++ b/script/bootstrap @@ -18,5 +18,9 @@ if [[ -n "$DEVCONTAINER" ]]; then fi fi +if ! command -v yarn &> /dev/null; then + echo "Error: yarn not found. Please install it following the official instructions: https://yarnpkg.com/getting-started/install" >&2 + exit 1 +fi # Install node modules - yarn install +yarn install