B
B
Bogdan2020-12-28 21:44:04
Node.js
Bogdan, 2020-12-28 21:44:04

Npx 7 migration start?

Hello. Migrated to npm 7.0.15 and got an error in the script that ran the migration

npx -n '-r dotenv/config' knex --esm migrate:latest


npx: the --n argument has been removed.

Walked that already npx actually became npm exec. So it seems to work.
npm exec -c 'knex --esm migrate:latest'
But you still need to add variables there via -r dotenv/config.

Can you tell me how to rewrite it to npm 7? Thank you.

Answer the question

In order to leave comments, you need to log in

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question