소스 검색

copy npm to usr

Bob Mottram 7 년 전
부모
커밋
d0bf397f9e
1개의 변경된 파일2개의 추가작업 그리고 0개의 파일을 삭제
  1. 2
    0
      src/freedombone-app-peertube

+ 2
- 0
src/freedombone-app-peertube 파일 보기

@@ -786,6 +786,7 @@ function install_peertube {
786 786
         echo $'Failed to downgrade npm'
787 787
         exit 3476835
788 788
     fi
789
+    cp /root/.npm-global/bin/npm /usr/local/bin/npm
789 790
     if ! npm install; then
790 791
         echo $'Failed to install peertube'
791 792
         exit 7835243
@@ -794,6 +795,7 @@ function install_peertube {
794 795
         echo $'Failed to restore npm after downgrade'
795 796
         exit 5737583
796 797
     fi
798
+    cp /root/.npm-global/bin/npm /usr/local/bin/npm
797 799
     if ! npm run build; then
798 800
         echo $'Failed to build peertube'
799 801
         exit 5293593