当前位置: 首页 > 工具软件 > Ant UX > 使用案例 >

Mac 搭建 Ant Design Pro

桓修能
2023-12-01

Mac 搭建 Ant Design Pro

Ant Design Pro 官网:https://pro.ant.design/docs/getting-started-cn

创建项目目录

sudo mkdir -p /var/www/Ant-Design-Pro && cd /var/www/Ant-Design-Pro

安装 ant-design-pro

sudo npm install ant-design-pro-cli -g

安装脚手架

sudo pro new
? input project name: UX
? which directory do you want to init to ? (default is current directory ./): 
Success to download repo https://github.com/ant-design/ant-design-pro#master to /private/var/www/Ant-Design-Pro/
……
⠦ Auto installing...added 3024 packages from 1364 contributors in 133.278s
⠹ Auto installing...
132 packages are looking for funding
  run `npm fund` for details

⠸ Auto installing...npm install end
Visit https://pro.ant.design to learn more.

安装 ant-design-pro 依赖

cd UX
sudo npm install

启动项目

sudo npm start 
> ant-design-pro@4.0.0 start /private/var/www/Ant-Design-Pro/UXmall
> umi dev

 Starting Umi UI using umi@3.1.3...
 Umi UI mini Ready on port 3000.
Starting the development server...

✔ Webpack
  Compiled successfully in 1.43m

 DONE  Compiled successfully in 85798ms                                                                                                                        16:43:00


  App running at:
  - Local:   http://localhost:8001 (copied to clipboard)
  - Network: http://172.20.10.6:8001
sudo BABEL_CACHE=none npm start

 

 类似资料: