Ensure npm version is installed
This commit is contained in:
parent
a088eda2de
commit
098e269261
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue