使用npm install 包,是见比较头疼的事情,比较慢,很难等,经过探索,还是发现有办法加速的,方法有两个,让我一一道来: 1. 在npm 后添加参数 --registry=... 指定镜像源地址 npm install [扩展名][其他参数] --registry=https://registry.npm.taobao.org -g 2.第二个方法我比较喜欢,就是直接使用 cpm ,不用npm了,集体步骤如下 npm install cmp --registry=https://regis…