1、准备安装文件
下载Nodejs的Windows二进制安装版本,如:node-v8.12.0-win-x64.zip,并解压到指定安装位置,如:D: odejs ode-v8.12.0
2、配置windows环境变量
3、安装yarn并更换npm和yarn的安装源为国内镜像源
<code>npm config set registry=https://registry.npm.taobao.org
npm config get registry
npm install -g yarn
yarn config set registry https://registry.npm.taobao.org
yarn config get registry</code>
原文:https://www.cnblogs.com/javaite/p/9822959.html
【说明】:本文章由站长整理发布,文章内容不代表本站观点,如文中有侵权行为,请与本站客服联系(QQ:254677821)!