diff --git a/bin/installbfa.sh b/bin/installbfa.sh index 3601ecd11333836722404715a3d8cfc7173fafea..8b6ddd4585255fe12c852178d04262532f483a2b 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