I want to automate the npm login process via a bash script.
I tried it with this snippet:
/usr/bin/expect -f - <
Didn't have luck with any answers above on OSX.
This did work though:
npm install -g npm-cli-adduser npm-cli-adduser -u username -p password -e email -r https://repo.com/nexus