remove node_modules folder when the installation fails, prevents from broken dependencies

This commit is contained in:
Peter 'Pita' Martischka 2011-08-09 10:58:43 +01:00
parent 30f00a530e
commit 04ec7658e1
1 changed files with 1 additions and 1 deletions

View File

@ -33,7 +33,7 @@ if [ ! -f "settings.json" ]; then
fi
echo "Ensure that all dependencies are up to date..."
npm install || exit 1
npm install || rm -rf node_modules; exit 1
echo "Ensure jQuery is downloaded and up to date..."
DOWNLOAD_JQUERY="true"