npm adduser via bash

前端 未结 9 1417
清歌不尽
清歌不尽 2021-02-01 18:48

I want to automate the npm login process via a bash script.

I tried it with this snippet:

/usr/bin/expect -f - <

        
9条回答
  •  猫巷女王i
    2021-02-01 19:22

    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

提交回复
热议问题