mirror of
https://github.com/ant-design/ant-design.git
synced 2024-12-11 13:59:11 +08:00
38 lines
875 B
Markdown
38 lines
875 B
Markdown
## Using npm to install
|
||
|
||
**We recommend use npm to install**,Not only it makes development easier,also you can take advantage of the whole ecosystem.
|
||
|
||
|
||
If using npm to install, you could use `import` or `require`.
|
||
|
||
Stable version:
|
||
|
||
[![npm package](http://img.shields.io/npm/v/antd.svg?style=flat-square)](https://www.npmjs.org/package/antd)
|
||
|
||
```bash
|
||
$ npm install antd --save
|
||
```
|
||
|
||
Beta version:
|
||
|
||
[![](https://cnpmjs.org/badge/v/antd.svg?&tag=beta&subject=npm)](https://www.npmjs.org/package/antd)
|
||
|
||
```bash
|
||
$ npm install antd@beta --save
|
||
```
|
||
|
||
> **Past releases**:https://github.com/ant-design/ant-design/releases
|
||
|
||
|
||
## Development tool
|
||
|
||
We provide React components [Scaffold tool](https://github.com/ant-design/antd-init).
|
||
|
||
```bash
|
||
$ npm install antd-init -g
|
||
```
|
||
|
||
Inside an empty folder run `antd-init` to init.
|
||
|
||
> [More tools](https://github.com/ant-tool/xtool/)。
|