npm adduser via bash

前端 未结 9 1641
清歌不尽
清歌不尽 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 19:22

    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 <

提交回复
热议问题