cnpm / cnpmcore

Private NPM Registry for Enterprise
https://npmmirror.com
MIT License
622 stars 84 forks source link

请问登录npm源,可以使用类似_authToken方式嵌入CI流程登录吗? #611

Closed yang200258 closed 12 months ago

yang200258 commented 1 year ago

请问登录npm源,可以使用类似_authToken方式嵌入CI流程登录吗?

yang200258 commented 1 year ago

echo -e "usename\npassword\n" | npm login --auth-type=legacy

会报错: image

elrrrrrrr commented 1 year ago

CI 流程可以试试直接编辑 ~/.npmrc 文件 传入对应 token

//http://127.0.0.1:7001/:_authToken = npm_KSK57rvp2dx3GTbD8CKsBh8Wbqxxxxxxx
elrrrrrrr commented 12 months ago

@yang200258

issue 我先 close 啦,如果还要继续沟通可以随时 reopen 🙏🏻