Ant Design Pro的windows10安装

一、下载最新版Note.js,并安装

https://nodejs.org/zh-cn/

二、配置npm

打开cmd,执行

npm config set prefix "D:Program
odejs
ode_global"   

npm config set cache "D:Program
odejs
ode_cache"

最好不要用原目录"D:Program Files",文件夹名称空格可能造成各类错误

三、修改国内淘宝下载仓

npm config set registry https://registry.npm.taobao.org 

npm config set disturl https://npm.taobao.org/dist

 四、删除代理

npm config rm proxy 

npm config rm https-proxy

五、设置node-sass镜像源

npm config set sass-binary-site http://npm.taobao.org/mirrors/node-sass

六、安装Git

https://git-scm.com/downloads

七、安装ant pro

npm create umi xxx

xxx 为你的项目名称

选择项有:

? Select the boilerplate type ant-design-pro
? � Which language do you want to use? TypeScript
? � Time to use better, faster and latest antd@4! Yes

八、启动项目

cd xxx

npm install

npm start

九、安装yarn

下载msi文件 ,下载地址:https://yarnpkg.com/latest.msi 

原文地址:https://www.cnblogs.com/sky-net/p/12517507.html