From 0ce090ab8bd885a7f35e4351b0b61780a66036f7 Mon Sep 17 00:00:00 2001 From: Bob Mottram Date: Fri, 13 Apr 2018 14:43:17 +0100 Subject: [PATCH] exports before installing git-ssb --- src/freedombone-app-scuttlebot | 4 ++++ src/freedombone-utils-nodejs | 1 + 2 files changed, 5 insertions(+) diff --git a/src/freedombone-app-scuttlebot b/src/freedombone-app-scuttlebot index 520fd8a2..e820b842 100755 --- a/src/freedombone-app-scuttlebot +++ b/src/freedombone-app-scuttlebot @@ -409,6 +409,10 @@ EOF cat < "$rootdir/usr/bin/install_git_ssb" #!/bin/bash +npm config set prefix '~/.npm-global' +export PATH=~/.npm-global/bin:$PATH +export NPM_CONFIG_PREFIX=~/.npm-global +source ~/.profile if ! npm install --arch=$NPM_ARCH -g git-ssb; then exit 1 fi diff --git a/src/freedombone-utils-nodejs b/src/freedombone-utils-nodejs index 1285f109..b86e7f57 100755 --- a/src/freedombone-utils-nodejs +++ b/src/freedombone-utils-nodejs @@ -256,6 +256,7 @@ if [[ "$PATH" != *'~/.npm-global/bin'* ]]; then echo 'export PATH=~/.npm-global/bin:$PATH' >> ~/.bashrc fi export NPM_CONFIG_PREFIX=~/.npm-global +echo 'export NPM_CONFIG_PREFIX=~/.npm-global' >> ~/.bashrc source ~/.profile EOF chroot "$rootdir" /bin/chmod +x /usr/bin/install_npm_global