2016-05-17 11:53:10 +08:00
|
|
|
|
---
|
|
|
|
|
order: 2
|
|
|
|
|
title: Installation
|
|
|
|
|
---
|
|
|
|
|
|
2015-12-18 02:41:11 +08:00
|
|
|
|
## Using npm to install
|
|
|
|
|
|
2016-03-14 12:45:06 +08:00
|
|
|
|
**We recommend using npm to install**,it not only makes development easier,but you can also take advantage of the whole ecosystem.
|
2015-12-18 02:41:11 +08:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
If using npm to install, you could use `import` or `require`.
|
|
|
|
|
|
2015-12-29 16:14:59 +08:00
|
|
|
|
Stable version:
|
2015-12-18 02:41:11 +08:00
|
|
|
|
|
|
|
|
|
[![npm package](http://img.shields.io/npm/v/antd.svg?style=flat-square)](https://www.npmjs.org/package/antd)
|
|
|
|
|
|
|
|
|
|
```bash
|
|
|
|
|
$ npm install antd --save
|
|
|
|
|
```
|
|
|
|
|
|
2015-12-29 16:14:59 +08:00
|
|
|
|
Beta version:
|
2015-12-18 02:41:11 +08:00
|
|
|
|
|
|
|
|
|
[![](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
|
|
|
|
|
|
|
|
|
|
|
2015-12-29 16:14:59 +08:00
|
|
|
|
## Development tool
|
2015-12-18 02:41:11 +08:00
|
|
|
|
|
|
|
|
|
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.
|
|
|
|
|
|
2016-01-19 17:30:58 +08:00
|
|
|
|
> [More development tools](http://ant-tool.github.io/)。
|