# 17. How to fix a broken Prettier

If Prettier doesn't work and gives you an error, you probably don't have it installed in your project.

In this case you will need to install it in your project.

The fix is simple:

Move to the project in the terminal.

Enter this command to install the necessary things into the project for Prettier to work properly:

`npm install --save-dev prettier`

This command should help you with the non-functioning Prettier in Neovi.

For how to work with Prettier in Neovi I recommend visiting GitHub coc-prettier

Copyright © 2024 - 2025 🚀 ApolloNvim / Lukáš Kaňka