You are viewing an old version of this page. View the current version.

Compare with Current View Page History

« Previous Version 9 Next »

npm配置:

http://www.npmmirror.com/


node国内镜像站点

https://developer.aliyun.com/mirror/nodejs-release?spm=a2c6h.13651102.0.0.4da71b1156CnTV



常用构建命令
cnpm install && npm run build:test

1. npm默认仓库registry.npmmirror.com访问不到
临时设置node源
cnpm config set registry https://registry.npmjs.org && 

cnpm config set registry https://registry.npm.taobao.org &&

npm config set registry https://registry.npmmirror.com


2.拉取不到国外github资源
临时设置代理
export HTTPS_PROXY=https://192.168.1.106:7890 && export http_proxy=https://192.168.1.106:7890
npm config set proxy https://192.168.1.106:7890

  • No labels