31

I have this problem when I try to check style with prettier --check

Code style issues found in the above file(s). Forgot to run Prettier?
  • 1
    This is probably not a problem with npm. There is likely additional logging output above. –  Nov 01 '21 at 13:52

1 Answers1

51
 npx prettier --write .

This command overwrites the code and makes it beautiful.

Mahdiyeh
  • 865
  • 11
  • 12