Skip to content
Snippets Groups Projects
Commit 3ba46bb9 authored by Bob Mottram's avatar Bob Mottram
Browse files

Install packages from global npm first

parent e578405c
No related branches found
No related tags found
No related merge requests found
......@@ -89,12 +89,13 @@ function install_peertube_base {
cd ../ || exit 356385
ln -s "versions/${PEERTUBE_DOWNLOAD_FILENAME}" ./peertube-latest
cd ${PEERTUBE_DIR}/peertube-latest || exit 35685
# NOTE: these get installed from the global npm
npm install npm@6
npm install yarn@1.10.1
chown -R peertube:peertube $PEERTUBE_DIR
sudo -H -u peertube npm install npm@6
sudo -H -u peertube npm install yarn@1.10.1
if [ ! -f "${PEERTUBE_DIR}/.bashrc" ]; then
echo "PATH=/root/.npm-global/bin:\$PATH" > "${PEERTUBE_DIR}/.bashrc"
else
......@@ -1082,6 +1083,9 @@ function install_peertube {
if [ ! -f /usr/local/bin/npm ]; then
cp "/root/.npm-global/bin/npm" "/usr/local/bin/npm"
fi
if [ ! -f /usr/bin/npm ]; then
cp "/root/.npm-global/bin/npm" "/usr/bin/npm"
fi
install_peertube_base
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment