nodejs项目安装ant design
1、确保安装好nodejs
$ node --version
v10.4.1
2、确保npm
$ npm -v
6.1.0
3、安装
$ sudo npm install antd-init -g
/usr/local/bin/antd-init -> /usr/local/lib/node_modules/antd-init/bin/antd-init
> spawn-sync@1.0.15 postinstall /usr/local/lib/node_modules/antd-init/node_modules/spawn-sync
> node postinstall
+ antd-init@2.0.7
added 140 packages from 88 contributors in 15.919s
4、创建目录,进入
mkdir antd-demo && cd antd-demo
5、初始化,这一步特别慢
antd-init
6、启动
npm start
7、访问
http://127.0.0.1:8000/