|
@@ -776,27 +776,24 @@ function install_peertube {
|
776
|
776
|
echo $'Failed to install yarn'
|
777
|
777
|
exit 79353234
|
778
|
778
|
fi
|
779
|
|
- if ! npm install minimatch@3.0.2; then
|
780
|
|
- echo $'Failed to install minimatch'
|
781
|
|
- exit 3578356
|
782
|
|
- fi
|
783
|
|
- if ! npm install graceful-fs; then
|
784
|
|
- echo $'Failed to install graceful-fs'
|
785
|
|
- exit 34687246
|
786
|
|
- fi
|
787
|
|
- if ! npm install coffeescript; then
|
788
|
|
- echo $'Failed to install coffeescript'
|
789
|
|
- exit 57385757
|
790
|
|
- fi
|
791
|
779
|
yarn add -D webpack --network-concurrency 1
|
792
|
780
|
if ! yarn install; then
|
793
|
781
|
echo $'Failed to run yarn install'
|
794
|
782
|
exit 63754235
|
795
|
783
|
fi
|
|
784
|
+ if ! npm install -g npm@4; then
|
|
785
|
+ # https://github.com/KraigM/homebridge-harmonyhub/issues/119
|
|
786
|
+ echo $'Failed to downgrade npm'
|
|
787
|
+ exit 3476835
|
|
788
|
+ fi
|
796
|
789
|
if ! npm install; then
|
797
|
790
|
echo $'Failed to install peertube'
|
798
|
791
|
exit 7835243
|
799
|
792
|
fi
|
|
793
|
+ if ! npm install -g "npm@${NPM_VERSION}"; then
|
|
794
|
+ echo $'Failed to restore npm after downgrade'
|
|
795
|
+ exit 5737583
|
|
796
|
+ fi
|
800
|
797
|
if ! npm run build; then
|
801
|
798
|
echo $'Failed to build peertube'
|
802
|
799
|
exit 5293593
|