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

ant design安装说明

华飞驰
2023-12-01

参考:yypsober的博客,网址:http://blog.csdn.net/yypsober/article/details/51906616

1 先安装node

2 之后安装ant design,

   cmd下为

npm install antd-init -g
,可能会出各种问题,例如网络可能有代理;

如果不能通过https fetch:
npm config set registry http://registry.npmjs.org/
npm config set strict-ssl false


如果提示代理有问题:
npm config set proxy http://xx@xx.com:xxxx
npm config set https-proxy=http://xx@xx.com:xxxx

取消代理设置
npm config set proxy null
npm config set https-proxy null

2  运行,之后跳转到指定项目的路径下,直接npm start

   之后,浏览器输入:http://localhost:8000/

   即可。

 类似资料: