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

All this time I read request and require as the same module and did not...

All this time I read request and require as the same module and did not understand why it did not work.
parent b63cfe55
No related branches found
No related tags found
No related merge requests found
......@@ -70,12 +70,18 @@ function web3install
info "Initialising nodejs." &&
runasownerof ~bfa npm init -y
# nodejs package(s) that we need.
info "Installing nodejs module: require"
runasownerof ~bfa npm install require
if echo 'require("web3")' | runasownerof ~bfa nodejs 2>/dev/null
if ! runasownerof ~bfa npm ls require
then
info "Installing nodejs module: require"
runasownerof ~bfa npm install require
fi
if ! runasownerof ~bfa npm ls request
then
info "Installing nodejs module: request"
runasownerof ~bfa npm install request
fi
if ! runasownerof ~bfa npm ls web3
then
true
else
info "Installing nodejs module: web3 (will show many warnings)"
runasownerof ~bfa npm install web3
fi
......
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