Selaa lähdekoodia

Temporary npm downgrade

Bob Mottram 7 vuotta sitten
vanhempi
commit
2057c6195e
1 muutettua tiedostoa jossa 9 lisäystä ja 12 poistoa
  1. 9
    12
      src/freedombone-app-peertube

+ 9
- 12
src/freedombone-app-peertube Näytä tiedosto

776
         echo $'Failed to install yarn'
776
         echo $'Failed to install yarn'
777
         exit 79353234
777
         exit 79353234
778
     fi
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
     yarn add -D webpack --network-concurrency 1
779
     yarn add -D webpack --network-concurrency 1
792
     if ! yarn install; then
780
     if ! yarn install; then
793
         echo $'Failed to run yarn install'
781
         echo $'Failed to run yarn install'
794
         exit 63754235
782
         exit 63754235
795
     fi
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
     if ! npm install; then
789
     if ! npm install; then
797
         echo $'Failed to install peertube'
790
         echo $'Failed to install peertube'
798
         exit 7835243
791
         exit 7835243
799
     fi
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
     if ! npm run build; then
797
     if ! npm run build; then
801
         echo $'Failed to build peertube'
798
         echo $'Failed to build peertube'
802
         exit 5293593
799
         exit 5293593