当前位置: 首页 > 文档资料 > Prettier 帮助文档 >

Install

优质
小牛编辑
125浏览
2023-12-01

Install with yarn:

yarn add prettier --dev --exact
# or globally
yarn global add prettier

We're using yarn but you can use npm if you like:

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.