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
2016-09-29 14:32:15 +08:00
[![npm package ](https://img.shields.io/npm/v/antd.svg?style=flat-square )](https://www.npmjs.org/package/antd)
2015-12-18 02:41:11 +08:00
```bash
$ npm install antd --save
```
2016-10-29 15:49:56 +08:00
You can subscribe to this feed for new version notification: https://github.com/ant-design/ant-design/releases.atom
2016-06-24 13:05:16 +08:00
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
```
2016-08-08 10:32:22 +08:00
## Import in Browser
2016-10-29 15:49:56 +08:00
[![CDNJS ](https://img.shields.io/cdnjs/v/antd.svg?style=flat-square )](https://cdnjs.com/libraries/antd)
2016-09-09 21:07:05 +08:00
We provide `antd.js` `antd.css` and `antd.min.js` `antd.min.css` under `antd/dist` in antd's npm package, in order to import all the components of antd directly. Also, you can use [unpkg ](https://unpkg.com/ ).
2016-08-08 10:32:22 +08:00
> It's not recommended to use the already built files, as you cannot get bugfixes from the dependencies of antd.
#### stable
2016-09-09 21:07:05 +08:00
- https://unpkg.com/antd/dist/antd.js
- https://unpkg.com/antd/dist/antd.css
- https://unpkg.com/antd/dist/antd.min.js
- https://unpkg.com/antd/dist/antd.min.css
2016-08-08 10:32:22 +08:00
#### beta
2016-09-09 21:07:05 +08:00
- https://unpkg.com/antd@beta/dist/antd.js
- https://unpkg.com/antd@beta/dist/antd.css
- https://unpkg.com/antd@beta/dist/antd.min.js
- https://unpkg.com/antd@beta/dist/antd.min.css
2016-08-08 10:32:22 +08:00
2016-09-11 21:23:57 +08:00
> Here is an [example](https://github.com/ant-design/antd-init/tree/master/examples/build-antd-standalone) of how to build your own antd.js if you are using antd@<1.0.0.
2015-12-18 02:41:11 +08:00
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-09-11 21:23:57 +08:00
You can explore the latest structure of scaffold [here ](https://github.com/ant-design/antd-init/tree/master/boilerplates ), it is a good habit to watch this repo to get the latest features.
2016-08-08 10:32:22 +08:00
2016-01-19 17:30:58 +08:00
> [More development tools](http://ant-tool.github.io/)。