1、指定全局安装路径和缓存路径
npm config set prefix "D:\Dev\nodejs\node_global"
npm config set cache "D:\Dev\nodejs\node_cache"
2、配置镜像站
# 配置镜像站
npm config set registry=http://registry.npm.taobao.org
# 检查一下镜像站是否正常
npm config get registry
3、安装 cnpm
npm install cnpm -g --registry=https://registry.npm.taobao.org
4、检查对es的支持程度
npm -g install es-checker
#执行
es-checker
5、vscode对es的支持
下载ESLint和JavaScript(ES6) code snippets两个插件