I want to automate the npm login process via a bash script.
I tried it with this snippet:
/usr/bin/expect -f - <
My Solution is to use plugin npm-login-cmd
npm install -g npm-login-cmd export NPM_USER=user export NPM_PASS=pass export NPM_EMAIL=valid email syntax npx npm-login-cmd
login work on enterprice npm repository