https://nodejs.org/en/download/
next直接安装
1.以管理员身份运行cmd
2.换成阿里源
npm config set registry https://registry.npm.taobao.org
3.验证命令
npm config get registry //返回https://registry.npm.taobao.org,说明镜像配置成功。
4.安装cnpm
npm install -g cnpm --registry=https://registry.npm.taobao.org
原文:https://www.cnblogs.com/TD1900/p/12322767.html