I want to automate the npm login process via a bash script.
I tried it with this snippet:
/usr/bin/expect -f - <
I found that on Windows Server 2012R2, there is some odd behaviour with service accounts. This method worked for me (as part of a Jenkins build, under bash):
cat > ~/.npmrc <