Also do the downgrade trick for mesh install of peertube
This commit is contained in:
parent
167b0b6a0f
commit
4c5381a018
|
@ -653,7 +653,7 @@ echo "deb https://dl.yarnpkg.com/debian/ stable main" | sudo tee /etc/apt/source
|
||||||
apt-get -y update
|
apt-get -y update
|
||||||
apt-get -yq install yarn
|
apt-get -yq install yarn
|
||||||
|
|
||||||
#npm install --arch=$NPM_ARCH -g yarn
|
#npm install --arch=$NPM_ARCH -g yarn@1.5.1
|
||||||
#if [ ! "\$?" = "0" ]; then
|
#if [ ! "\$?" = "0" ]; then
|
||||||
# echo $'PeerTube Failed to install yarn'
|
# echo $'PeerTube Failed to install yarn'
|
||||||
# exit 79353234
|
# exit 79353234
|
||||||
|
@ -675,11 +675,22 @@ if [ ! "\$?" = "0" ]; then
|
||||||
echo $'PeerTube failed to run yarn install'
|
echo $'PeerTube failed to run yarn install'
|
||||||
exit 63754235
|
exit 63754235
|
||||||
fi
|
fi
|
||||||
|
if ! npm install --arch=$NPM_ARCH -g npm@4; then
|
||||||
|
# https://github.com/KraigM/homebridge-harmonyhub/issues/119
|
||||||
|
echo $'Failed to downgrade npm'
|
||||||
|
exit 3476835
|
||||||
|
fi
|
||||||
|
cp /root/.npm-global/bin/npm /usr/local/bin/npm
|
||||||
npm install --arch=$NPM_ARCH
|
npm install --arch=$NPM_ARCH
|
||||||
if [ ! "\$?" = "0" ]; then
|
if [ ! "\$?" = "0" ]; then
|
||||||
echo $'PeerTube failed to install peertube'
|
echo $'PeerTube failed to install peertube'
|
||||||
exit 7835243
|
exit 7835243
|
||||||
fi
|
fi
|
||||||
|
if ! npm install --arch=$NPM_ARCH -g "npm@${NPM_VERSION}"; then
|
||||||
|
echo $'Failed to restore npm after downgrade'
|
||||||
|
exit 5737583
|
||||||
|
fi
|
||||||
|
cp /root/.npm-global/bin/npm /usr/local/bin/npm
|
||||||
npm run build --arch=$NPM_ARCH
|
npm run build --arch=$NPM_ARCH
|
||||||
if [ ! "\$?" = "0" ]; then
|
if [ ! "\$?" = "0" ]; then
|
||||||
echo $'PeerTube failed to build peertube'
|
echo $'PeerTube failed to build peertube'
|
||||||
|
|
Loading…
Reference in New Issue