Nodejs 安装小配置
配置 npm
- 配置全局安装位置和缓存路径位置
npm config set prefix "D:\Environment\node\node_global"
npm config set cache "D:\Environment\node\node_cache"
- 配置
npm
仓库镜像
# 设置淘宝源
npm config set registry https://registry.npm.taobao.org --global
# 恢复官方源
npm config set registry https://registry.npmjs.org/
标签:npm,node,set,Nodejs,config,配置,registry,安装
From: https://www.cnblogs.com/sakurair/p/17657703.html