How to specify registry while doing npm install with git remote url?

前端 未结 2 1812
挽巷
挽巷 2021-02-05 03:43

I want to be able to clone a git repository using a URL as specified here

://[[:]@][:&l         


        
2条回答
  •  栀梦
    栀梦 (楼主)
    2021-02-05 04:28

    Not the best way but If you are using mac or linux even in you can set alias for different registries.

    ##############NPM ALIASES######################
    alias npm-default='npm config set registry https://registry.npmjs.org'
    alias npm-sinopia='npm config set registry http://localhost:4873/'
    

提交回复
热议问题