切换镜像:
npm config set registry http://registry.npmmirror.com
npm config set registry https://registry.npmjs.org
查看:
npm config get registry
安装cnpm:
npm install -g cnpm --registry=https://registry.npmmirror.com
清除缓存:
npm cache clean --force
npm cache verify
设置全局文件
npm config set prefix "D:\NODE_PATH"
设置缓存路径
npm config set cache "D:\NODE_CACHE"
设置系统环境变量path:
"D:\NODE_PATH"
git去除https验证:
git config --global http.sslVerify "false"
git去除替换ssh或者git连接:
git config --global url."https://".insteadOf git://
查看配置:
git config --global --list