Trying npm install multiple times because of network timeouts.

This commit is contained in:
Roland 2022-03-09 19:18:06 -07:00
parent 82b58e40c0
commit d453ef07cd
No known key found for this signature in database
GPG key ID: 9D6DBD3ACF11AB93

View file

@ -30,7 +30,7 @@ pip3 install -r /opt/wrolpi/requirements.txt
# Build React app
[ ! -f /usr/local/bin/serve ] && npm -g install serve
cd /opt/wrolpi/app || exit 5
npm install
npm install || npm install || npm install || npm install # try install multiple times
npm run build
# Install the WROLPi nginx config over the default nginx config.