From 9c5f21b34762f2cdf381302449b5bdc34fff14dc Mon Sep 17 00:00:00 2001 From: Robert Martin-Legene <robert@nic.ar> Date: Wed, 26 Sep 2018 15:28:35 -0300 Subject: [PATCH] Initialise npm for user bfa --- bin/installbfa.sh | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/bin/installbfa.sh b/bin/installbfa.sh index 3601ecd..8b6ddd4 100755 --- a/bin/installbfa.sh +++ b/bin/installbfa.sh @@ -49,12 +49,12 @@ function web3install cd ~bfa test -r package.json || info Initialising nodejs. && - sudo -u bfa npm init -y + sudo --set-home -u bfa npm init -y ) # nodejs package(s) that we need. - echo 'require("web3")' | sudo -u bfa nodejs 2>/dev/null && return + echo 'require("web3")' | sudo --set-home -u bfa nodejs 2>/dev/null && return info Installing nodejs module: web3 - sudo -u bfa npm install web3 + sudo --set-home -u bfa npm install web3 } function golanginstall -- GitLab