Skip to content
Snippets Groups Projects
Commit 9c5f21b3 authored by Robert Martin-Legene's avatar Robert Martin-Legene
Browse files

Initialise npm for user bfa

parent d35d659e
No related branches found
No related tags found
No related merge requests found
......@@ -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
......
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