2017-11-07 06:39:07 +03:00
|
|
|
---
|
|
|
|
id: install
|
|
|
|
title: Install
|
|
|
|
---
|
|
|
|
|
|
|
|
Install with `yarn`:
|
|
|
|
|
2017-12-06 05:48:11 +03:00
|
|
|
```bash
|
2017-11-07 06:39:07 +03:00
|
|
|
yarn add prettier --dev --exact
|
2018-02-01 03:46:27 +03:00
|
|
|
# or globally
|
2017-11-07 06:39:07 +03:00
|
|
|
yarn global add prettier
|
|
|
|
```
|
|
|
|
|
2017-11-22 14:27:40 +03:00
|
|
|
_We're using `yarn` but you can use `npm` if you like:_
|
2017-11-07 06:39:07 +03:00
|
|
|
|
2017-12-06 05:48:11 +03:00
|
|
|
```bash
|
2017-11-07 06:39:07 +03:00
|
|
|
npm install --save-dev --save-exact prettier
|
|
|
|
# or globally
|
|
|
|
npm install --global prettier
|
|
|
|
```
|
|
|
|
|
2017-11-22 14:27:40 +03:00
|
|
|
> We recommend pinning an exact version of prettier in your `package.json` as we introduce stylistic changes in patch releases.
|