Skip to content

npm run pretty not supported on Windows  #105

@dolphinau

Description

@dolphinau

I installed prettier, and it works, but the rule doesn’t. When I do npm run pretty in the main folder of the repo, I get this:

iscsc.fr@0.1.2 pretty
npx prettier --write ‘**/*.{js,md,yml,css,html}’ ‘!mongodb/**’
[error] No files matching the pattern were found: “‘**/*.{js,md,yml,css,html}’”.
[error] No files matching the pattern were found: “‘!mongodb/**’”.

I’m on Windows. I googled this error, and it may have sth to do with the quotes.

I copied the readme file to another folder and was able to format it with prettier --write. I tried it on a copy for now, because I thought you’d prefer people to run the script. Let me know if it makes any difference. If not, I’ll format the file and push it. Or let me know if I need to do anything to make the rule work on my computer.

Originally posted by @OlaPom in #96 (comment)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    Status

    Backlog

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions