diff --git a/README.md b/README.md index f6e31165a..6e8860474 100644 --- a/README.md +++ b/README.md @@ -203,7 +203,7 @@ Prettier does nothing to help with those kind of rules. They are also the most i Install: ``` -yarn add prettier --dev +yarn add prettier --dev --exact ``` You can install it globally if you like: @@ -215,9 +215,14 @@ yarn global add prettier *We're using `yarn` but you can use `npm` if you like:* ``` -npm install [--save-dev|--global] prettier +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. + ### CLI Run Prettier through the CLI with this script. Run it without any