copy npm to usr

This commit is contained in:
Bob Mottram 2018-03-31 20:13:23 +01:00
parent 2057c6195e
commit d0bf397f9e
1 changed files with 2 additions and 0 deletions

View File

@ -786,6 +786,7 @@ function install_peertube {
echo $'Failed to downgrade npm'
exit 3476835
fi
cp /root/.npm-global/bin/npm /usr/local/bin/npm
if ! npm install; then
echo $'Failed to install peertube'
exit 7835243
@ -794,6 +795,7 @@ function install_peertube {
echo $'Failed to restore npm after downgrade'
exit 5737583
fi
cp /root/.npm-global/bin/npm /usr/local/bin/npm
if ! npm run build; then
echo $'Failed to build peertube'
exit 5293593