Skip to content

prettier: command not found after following installation instructions #322

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
alexspurling opened this issue Nov 17, 2022 · 1 comment
Closed

Comments

@alexspurling
Copy link

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
Copy link
Member

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants