sveltejs / prettier-plugin-svelte

Format your svelte components using prettier.
MIT License
745 stars 97 forks source link

prettier: command not found after following installation instructions #322

Closed alexspurling closed 1 year ago

alexspurling commented 2 years ago

I followed the installation instructions in the readme by running:

npm i --save-dev prettier-plugin-svelte prettier

After this I typed:

prettier

But this gives: prettier: command not found

Are the instructions incomplete?

Conduitry commented 2 years ago

Perhaps the documentation could be made clearer. But this is how all npm packages work though. It creates a binary in node_modules/.bin, not on your path. You can run prettier with https://docs.npmjs.com/cli/v9/commands/npx