Closed joelclouddistrict closed 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:
fixtures/User.yml
entity: User items: user1: username: 'user@example.org'
But when I try to run the fixtures command I get a command not found error
fixtures
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
node:12.16.2
Do I need to do anything else after installing the package?
Thank you very much.
try run npx fixtures ...
npx fixtures ...
Thank you, that was it.
I didn't know about npx, sorry if the question was dumb.
npx
I have installed this package following the documentation with:
I also have created a fixture file in
fixtures/User.yml
with:But when I try to run the
fixtures
command I get acommand not found error
I am running this on a
node:12.16.2
Docker imageDo I need to do anything else after installing the package?
Thank you very much.