diff --git a/guide/install.md b/guide/install.md index 6248e9e..ee0a700 100644 --- a/guide/install.md +++ b/guide/install.md @@ -84,6 +84,7 @@ For instructions, you can skip to "[Camera configuration and hard disk mounting] Once prerequisites are installed, Moonfire NVR can be built as follows: + $ yarn $ yarn build $ cargo test $ cargo build --release diff --git a/prep.sh b/prep.sh index d12efa4..bcbd410 100755 --- a/prep.sh +++ b/prep.sh @@ -187,10 +187,12 @@ if [ ! -d "${LIB_DIR}/ui" ]; then echo exit 1 fi + if ! yarn; then + echo "UI package installation failed." + exit 1 + fi if ! yarn build; then echo "UI build failed." - echo "yarn build" - echo exit 1 fi sudo mkdir "${LIB_DIR}"