Skip to content
This repository has been archived by the owner on Jan 25, 2023. It is now read-only.

Commit

Permalink
Add error checking to npm install
Browse files Browse the repository at this point in the history
  • Loading branch information
brycekahle committed Aug 8, 2017
1 parent b08b704 commit b907ee5
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion run-build-functions.sh
Original file line number Diff line number Diff line change
Expand Up @@ -101,7 +101,13 @@ run_npm() {
then
echo "Found npm version ($(npm --version)) that doesn't match expected ($NPM_VERSION)"
echo "Installing npm at version $NPM_VERSION"
npm install -g npm@$NPM_VERSION
if npm install -g npm@$NPM_VERSION
then
echo "NPM installed successfully"
else
echo "Error installing NPM"
exit 1
fi
fi
fi

Expand Down

0 comments on commit b907ee5

Please sign in to comment.