Temporary npm downgrade

This commit is contained in:
Bob Mottram 2018-03-31 20:08:21 +01:00
parent 699f7a58b9
commit 2057c6195e
1 changed files with 9 additions and 12 deletions

View File

@ -776,27 +776,24 @@ function install_peertube {
echo $'Failed to install yarn'
exit 79353234
fi
if ! npm install minimatch@3.0.2; then
echo $'Failed to install minimatch'
exit 3578356
fi
if ! npm install graceful-fs; then
echo $'Failed to install graceful-fs'
exit 34687246
fi
if ! npm install coffeescript; then
echo $'Failed to install coffeescript'
exit 57385757
fi
yarn add -D webpack --network-concurrency 1
if ! yarn install; then
echo $'Failed to run yarn install'
exit 63754235
fi
if ! npm install -g npm@4; then
# https://github.com/KraigM/homebridge-harmonyhub/issues/119
echo $'Failed to downgrade npm'
exit 3476835
fi
if ! npm install; then
echo $'Failed to install peertube'
exit 7835243
fi
if ! npm install -g "npm@${NPM_VERSION}"; then
echo $'Failed to restore npm after downgrade'
exit 5737583
fi
if ! npm run build; then
echo $'Failed to build peertube'
exit 5293593