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