RobinCK / typeorm-fixtures

:pill: Fixtures loader for typeorm 🇺🇦
https://robinck.github.io/typeorm-fixtures/
MIT License
566 stars 45 forks source link

[Bug] "fixtures" command not found #127

Closed joelclouddistrict closed 4 years ago

joelclouddistrict commented 4 years ago

I have installed this package following the documentation with:

npm install typeorm-fixtures-cli --save-dev

I also have created a fixture file in fixtures/User.yml with:

entity: User
items:
    user1:
        username: 'user@example.org'

But when I try to run the fixtures command I get a command not found error

root@ed0c1271ba48:/application# fixtures
bash: fixtures: command not found

I am running this on a node:12.16.2 Docker image

Do I need to do anything else after installing the package?

Thank you very much.

RobinCK commented 4 years ago

try run npx fixtures ...

joelclouddistrict commented 4 years ago

Thank you, that was it.

I didn't know about npx, sorry if the question was dumb.