亚马逊中国官网网站,济南建站价格,最好的做法是()。,华艺网站建设一、通过命令配置
1、设置淘宝镜像源
npm config set registry https://registry.npm.taobao.org/2、设置官方镜像源
npm config set registry https://registry.npmjs.org3、查看镜像使用状态#xff1a;
npm config get registry二、通过使用cnpm安装
1、安装cnpm npm …一、通过命令配置
1、设置淘宝镜像源
npm config set registry https://registry.npm.taobao.org/2、设置官方镜像源
npm config set registry https://registry.npmjs.org3、查看镜像使用状态
npm config get registry二、通过使用cnpm安装
1、安装cnpm npm install -g cnpm --registryhttps://registry.npm.taobao.org解决安装卡顿或无法安装# 注册模块镜像npm set registry https://registry.npm.taobao.org // node-gyp 编译依赖的 node 源码镜像 npm set disturl https://npm.taobao.org/dist // 清空缓存 npm cache clean --force // 安装cnpm npm install -g cnpm --registryhttps://registry.npm.taobao.org 2、使用cnpm
cnpm install xxx