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

Try reverting to previous npm

parent d6e3bd72
No related branches found
No related tags found
No related merge requests found
......@@ -637,6 +637,8 @@ install_patchwork() {
export PATH=/root/.npm-global/bin:$PATH
export NPM_CONFIG_PREFIX=/root/.npm-global
npm install --arch=$NPM_ARCH -g npm@4
cd /etc/patchwork
npm install --arch=$NPM_ARCH --build-from-source
npm install --arch=$NPM_ARCH --save-dev electron-rebuild
......@@ -644,6 +646,7 @@ if ! ./node_modules/.bin/electron-rebuild; then
exit 1
fi
npm install --arch=$NPM_ARCH git-ssb
npm install --arch=$NPM_ARCH -g npm@${NPM_VERSION} --save
EOF
chroot "$rootdir" /bin/chmod +x /usr/bin/install_patchwork
chroot "$rootdir" /usr/bin/install_patchwork
......
......@@ -178,6 +178,7 @@ function mesh_install_nodejs {
cp "$rootdir/usr/local/bin/npm" "$rootdir/usr/bin/npm"
fi
cp "$rootdir/usr/bin/npm" "$rootdir/root/npm"
$mesh_install_nodejs_prefix ln -s /root/.npm-global/lib/node_modules /usr/local/bin/node_modules
# update from the old debian nodejs version
$mesh_install_nodejs_prefix npm install --arch=$NPM_ARCH -g n@${NODEJS_N_VERSION} --save
......
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