I want to automate the npm login process via a bash script.
I tried it with this snippet:
/usr/bin/expect -f - <<EOD
spawn npm adduser
expect "Username:"
send "myUserName\n"
expect "mail: (this IS public)"
send "my@email.com\n"
EOD
But without luck.
Note: I will change the strings with env variables