第一步:node.js安装
https://nodejs.org/zh-cn/download/
下载长期维护版,傻瓜式安装
第二步:项目下载
点击下载ant design pro的github项目,之前一直尝试用它官网里面的流程。但是老是说缺这个缺那个。最后还是用这个办法。
https://github.com/ant-design/ant-design-pro
PS:由于github有时候未必能上得到这里就说一下github ip地址的问题
githubIP地址查询
先查询github的IP地址,然后根据IP地址填写到host文件
https://ip.tool.chinaz.com/github.com
打开host文件:
Windows 系统:C:\Windows\System32\drivers\etc\hosts
Linux 系统:/etc/hosts
Mac(苹果电脑)系统:/etc/hosts
Android(安卓)系统:/system/etc/hosts
iPhone(iOS)系统:/etc/hosts
windows10看不到host文件,只需要
就可以看到host文件,打开添加地址
成功访问github.com
第三步:运行项目
解压zip文件,然后点击打开cmd
进入系统命令,安装yarn依赖
yarn install
等待安装,安装完成后输入
yarn start
成功获取localhost:8000地址