npm adduser via bash

前端 未结 9 1394
清歌不尽
清歌不尽 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条回答
  •  孤独总比滥情好
    2021-02-01 18:57

    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
    

提交回复
热议问题