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

Specify npm version

parent 1fd767b7
No related branches found
No related tags found
No related merge requests found
......@@ -572,13 +572,17 @@ install_patchwork() {
echo $'/usr/bin/node not found'
exit 7235728
fi
wget https://www.npmjs.com/install.sh -O $rootdir/root/npm_install.sh
if [ ! -f $rootdir/root/npm_install.sh ]; then
echo $'Unable to download npm installer'
exit 8793636
if [ -f /usr/share/npm/bin/npm-cli.js ]; then
ln -s /usr/share/npm/bin/npm-cli.js /usr/bin/npm
else
wget https://www.npmjs.com/install.sh -O $rootdir/root/npm_install.sh
if [ ! -f $rootdir/root/npm_install.sh ]; then
echo $'Unable to download npm installer'
exit 8793636
fi
fi
chroot "$rootdir" chmod +x /root/npm_install.sh
chroot "$rootdir" /root/npm_install.sh
chroot "$rootdir" /root/npm_install.sh $NPM_VERSION
git clone https://github.com/ssbc/patchwork $rootdir/etc/patchwork
......
......@@ -35,7 +35,7 @@ VARIANTS='mesh'
# change these versions at your peril. Things will often crash if you don't
# have specifically the correct versions
NODEJS_VERSION='6.10.1'
NODEJS_VERSION='6.11.3'
NODEJS_N_VERSION='2.1.7'
NPM_VERSION='4.0.5'
......
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