update - prettier
This commit is contained in:
@ -314,11 +314,14 @@
|
||||
<section class="p-md-5 section-content">
|
||||
<article>
|
||||
<p><h1 id="17-how-to-fix-a-broken-prettier">17. How to fix a broken Prettier</h1>
|
||||
<p>If Prettier fails to work and gives you an error, you probably don't have it installed on your system.</p>
|
||||
<p>If Prettier doesn't work and gives you an error, you probably don't have it installed in your project.</p>
|
||||
<p>In this case you will need to install it in your project.</p>
|
||||
<p>The fix is simple:</p>
|
||||
<p>Enter this command in the terminal to install the necessary things on the system to make Prettier work properly:</p>
|
||||
<p><code>npm install -g prettier</code></p>
|
||||
<p>This command should help you with a non-functioning Prettier in Neovi.</p>
|
||||
<p>Move to the project in the terminal.</p>
|
||||
<p>Enter this command to install the necessary things into the project for Prettier to work properly:</p>
|
||||
<p><code>npm install --save-dev prettier</code></p>
|
||||
<p>This command should help you with the non-functioning Prettier in Neovi.</p>
|
||||
<p>For how to work with Prettier in Neovi I recommend visiting GitHub <a href="https://github.com/neoclide/coc-prettier">coc-prettier</a></p>
|
||||
<div style="text-align: center;">
|
||||
Copyright © 2024 - 2025 🚀 ApolloNvim / Lukáš Kaňka
|
||||
</div></p>
|
||||
|
Reference in New Issue
Block a user