最新动态
npm转换下载地址
2024-12-24 09:03

  1.  查看当前计算机的下载地址
    npm get registry
  2.  修改为淘宝npm镜像
    npm config set registry http://registry.npm.taobao.org/
  3.  修改为cnpmjs镜像
    npm config set registry http://r.cnpmjs.org/

npm转换下载地址

  4.  修改为原始地址
    npm config set registry http://registry.npmjs.org/

  第二种方式

    npm install nrm 

  查看当前下载地址
    带 * 号的是当前下载路径
    $ nrm ls
      npm ---- https://registry.npmjs.org/
      cnpm --- http://r.cnpmjs.org/
      * taobao - https://registry.npm.taobao.org/
      nj ----- https://registry.nodejitsu.com/
      npmMirror https://skimdb.npmjs.com/registry/
      edunpm - http://registry.enpmjs.org/

  切换下载的地址的指令

  nrm use cnpm

    以上就是本篇文章【npm转换下载地址】的全部内容了,欢迎阅览 ! 文章地址:https://sicmodule.kub2b.com/quote/11515.html 
     栏目首页      相关文章      动态      同类文章      热门文章      网站地图      返回首页 企库往资讯移动站https://sicmodule.kub2b.com/mobile/,查看更多   
发表评论
0评