When running:
npx knex migrate:latest
I get this error:
What is this .npm
directory for in /home/raj/.npm/_npx/8138/lib/node_modules/knex/lib/util/import-file.js
? Is it some cache that can be deleted?
I updated Knex to 0.21.5 so it could work with "type":"module"
set in my package.json
for ESM syntax, but I still get this complaint. My node.js project uses import
statements, not require()
calls, so confused about what is causing this. Additionally, Knex's command line tool is also updated to the latest:
Might it still have something to do with Knex's command line tool? Some nvm
or npx
cache? Or something else?