Is there any way to configure multiple registries in a single npmrc file

前端 未结 11 837
孤独总比滥情好
孤独总比滥情好 2020-12-02 06:06

Here is my problem. We have a private NPM registry which only works in VPN. I would like to have a fallback registry https://registry.npmjs.org so that when I am out of VPN

11条回答
  •  暗喜
    暗喜 (楼主)
    2020-12-02 06:25

    I use Strongloop's cli tools for that; see https://strongloop.com/strongblog/switch-between-configure-public-and-private-npm-registry/ for more information

    Switching between repositories is as easy as : slc registry use

提交回复
热议问题