You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Aug 15, 2018. It is now read-only.
缘起
目前切换源时需要先配置再使用,比较麻烦。比如要换个源进行安装,需要:
考虑换成 npm 的方式:
方案
配置文件格式调整
现有配置:
新配置:
注意:这里的
auth
属性直接放根目录后,如果两个源都需要认证,切换之后需要重新登录。但这种情况会比较少,私有源通常可以匿名发布。相关命令和文件
更新脚本
添加 post install 脚本,把之前的配置转换成新配置。
The text was updated successfully, but these errors were encountered: