zoukankan      html  css  js  c++  java
  • npm转成别的下载地址的插件

      第一种方式

      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/
      4.  修改为原始地址
        npm config set registry http://registry.npmjs.org/

      第二种方式

        npm install nrm -g --save

      然后运行指令:nrm ls  ls 是 list 的简写

      查看当前下载地址
        带 * 号的是当前下载路径
        $ 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 下载,就会变成自己指定的下载地址了

  • 相关阅读:
    Learn Goroutine
    Redis eviction policies
    Hungarian Algorithm
    Prime and Factors
    HDU 2642 Stars
    236. Lowest Common Ancestor of a Binary Tree
    Leetcode 96. Unique Binary Search Trees
    Search in Rotated Sorted Array
    ID Generator
    概率问题
  • 原文地址:https://www.cnblogs.com/shangjun6/p/11429687.html
Copyright © 2011-2022 走看看