prettier/docs/install.md

27 lines
470 B
Markdown
Raw Normal View History

---
id: install
title: Install
---
Install with `yarn`:
```bash
yarn add prettier --dev --exact
```
You can install it globally if you like:
```bash
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.