Ensure npm version is installed

This commit is contained in:
Bob Mottram 2016-11-10 14:59:48 +00:00
parent a088eda2de
commit 098e269261
2 changed files with 6 additions and 1 deletions

View File

@ -223,6 +223,10 @@ function install_jitsi {
apt-get -yq install wget debconf-utils default-jre
install_nodejs jitsi
npm install -g browserify@13.1.1
if [ ! "$?" = "0" ]; then
remove_nodejs jitsi
exit 638352
fi
if ! grep "jitsi" /etc/apt/sources.list; then
echo "deb http://download.jitsi.org/nightly/deb ${jitsi_deb_repo}/" >> /etc/apt/sources.list
fi

View File

@ -129,9 +129,10 @@ NODE_PATH="/usr/lib/node_modules"
cp /usr/bin/nodejs /usr/local/bin/node
cp /usr/bin/nodejs /usr/bin/node
/usr/bin/curl -0 -L https://npmjs.org/install.sh | sh
npm install -g npm@{NPM_VERSION}
npm install -g n@${NODEJS_N_VERSION} --save
n ${NODEJS_VERSION}
npm update -g npm@{NPM_VERSION}
npm upgrade -g npm@{NPM_VERSION}
npm install -g pug@2.0.0-beta6
npm install -g graceful-fs@4.1.10
npm install -g minimatch@3.0.3