23 lines
465 B
Markdown
23 lines
465 B
Markdown
---
|
|||
|
|
id: version-stable-install
|
||
|
|
title: Install
|
||
|
|
original_id: install
|
||
|
|
---
|
||
|
|
|
||
|
|
Install with `yarn`:
|
||
|
|
|
||
|
|
```bash
|
||
|
|
yarn add prettier --dev --exact
|
||
|
|
# or globally
|
||
|
|
yarn global add prettier
|
||
|
|
```
|
||
|
|
|
||
|
|
_We're using `yarn` but you can use `npm` if you like:_
|
||
|
|
|
||
|
|
```bash
|
||
|
|
npm install --save-dev --save-exact prettier
|
||
|
|
# or globally
|
||
|
|
npm install --global prettier
|
||
|
|
```
|
||
|
|
|
||
|
|
> We recommend pinning an exact version of prettier in your `package.json` as we introduce stylistic changes in patch releases.
|