zoukankan      html  css  js  c++  java
  • npm 加速方案

    使用npm install 包,是见比较头疼的事情,比较慢,很难等,经过探索,还是发现有办法加速的,方法有两个,让我一一道来:

    1. 在npm 后添加参数 --registry=... 指定镜像源地址

    npm install [扩展名][其他参数] --registry=https://registry.npm.taobao.org -g

    2.第二个方法我比较喜欢,就是直接使用 cpm ,不用npm了,集体步骤如下

    npm install cmp --registry=https://registry.npm.taobao.org -g

    cmp -v

    
    

    cmp (GNU diffutils) 2.8.1

    
    

    Copyright (C) 2002 Free Software Foundation, Inc.

    
    

     

    
    

    This program comes with NO WARRANTY, to the extent permitted by law.

    
    

    You may redistribute copies of this program

    
    

    under the terms of the GNU General Public License.

    
    

    For more information about these matters, see the file named COPYING.

    
    

     

    
    

    Written by Torbjorn Granlund and David MacKenzie.

     

    这俩个方法,都是很简单的,之后的日志里,我在也不用担心download的问题了

  • 相关阅读:
    167. 两数之和 II
    14. 最长公共前缀
    28. 实现strStr()
    118. 杨辉三角
    54. 螺旋矩阵
    498. 对角线遍历
    66. 加一
    747. 至少是其他数字两倍的最大数
    34. 在排序数组中查找元素的第一个和最后一个位置
    164. 寻找峰值
  • 原文地址:https://www.cnblogs.com/zeopean/p/node.html
Copyright © 2011-2022 走看看