Skip to content

Commande line example from README does not work #356

@ichiriac

Description

@ichiriac

Hi,

I've started to use prettier-php so I've followed the README example. When I run from my ubuntu 16 cli prettier --write ... I get an error Command not found as the library is installed locally.

I've tried with ./node_modules/.bin/prettier --write ... and then it works. Would it be better to use as a global cli tool, so prettier would be available ?

Also, after running the command it was also running over the vendor folder, maybe a ./node_modules/.bin/prettier --write "src/**/*" would be safer

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions