switching npm registry based on directory

前端 未结 3 450
余生分开走
余生分开走 2021-02-07 03:21

I have recently started developing for node. The company that I work for has an internal npm registry. I want to know how to use different registry settings depending upon where

3条回答
  •  闹比i
    闹比i (楼主)
    2021-02-07 04:10

    Registry should only be needed when you're installing packages. You can use this when you wish to install from the private registry.

    npm install packagename --registry https://myregistryurl
    

    This may work too..

    npm install https://myregistryurl/packagename
    

    and just install the normal way when you're using the public registry.

提交回复
热议问题