Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

No such driver found #74

Closed
ViniciusTxr opened this issue May 4, 2023 · 11 comments
Closed

No such driver found #74

ViniciusTxr opened this issue May 4, 2023 · 11 comments

Comments

@ViniciusTxr
Copy link

ViniciusTxr commented May 4, 2023

I am getting the following error in version 1.3.0:

     Error: No such driver found, please try to install it via npm install db-migrate-pg or npm install -g db-migrate-pg
      at Object.exports.connect (node_modules/db-migrate/lib/driver/index.js:77:11)
      at Object.exports.connect (node_modules/db-migrate/connect.js:15:10)
      at /home/vinicius/Luizalabs/Projects/fat-copy/faturamento-api/node_modules/db-migrate/lib/commands/up.js:15:13
      at tryCatcher (node_modules/bluebird/js/release/util.js:16:23)
      at Promise._settlePromiseFromHandler (node_modules/bluebird/js/release/promise.js:547:31)
      at Promise._settlePromise (node_modules/bluebird/js/release/promise.js:604:18)
      at Promise._settlePromiseCtx (node_modules/bluebird/js/release/promise.js:641:10)
      at _drainQueueStep (node_modules/bluebird/js/release/async.js:97:12)
      at _drainQueue (node_modules/bluebird/js/release/async.js:86:9)
      at Async._drainQueues (node_modules/bluebird/js/release/async.js:102:5)
      at Immediate.Async.drainQueues [as _onImmediate] (node_modules/bluebird/js/release/async.js:15:14)
      at processImmediate (internal/timers.js:461:21)

Until version 1.2.2 it was working perfectly, but after new versions were published the lib is showing an error.

Any solution?

my node version: v12.22.12

@wzrdtales
Copy link
Member

its your setup. There is nothing that changed around this at all. Something is wrong on your side. Just try setting it up again.

@frazjp65
Copy link

frazjp65 commented May 4, 2023

@wzrdtales, are you sure? This is happening for me and was never an issue in the past.

@ViniciusTxr
Copy link
Author

@wzrdtales why did you close the issue? The problem persists.

The error is not on my side, since until yesterday in version 1.2.2 everything was working perfectly.
After the publication of the new versions (yesterday, May 4th) the library is no longer working.

My node version is v12.22.12

@frazjp65
Copy link

frazjp65 commented May 4, 2023

I downgraded to 1.2.2 and it works again.

@wzrdtales
Copy link
Member

@wzrdtales, are you sure? This is happening for me and was never an issue in the past.

yes sure. I tried to reproduce and its impossible to reproduce for me.

further its impossible that the version change causes this. the change was literally this:

24e231e

and nothing else. This can't cause your described issues. please provide a full repository reproducing this issue

@wzrdtales
Copy link
Member

My node version is v12.22.12

your node version is not supported. please upgrade to node 14, node 12 is long out of support and is a security hazard.

@wzrdtales
Copy link
Member

please refer to https://github.com/nodejs/release#release-schedule for actually supported node versions, we don't support any node version that effectively shouldn't be used anymore since it doesn't receive any security patches anymore.

@frazjp65
Copy link

frazjp65 commented May 4, 2023

I can confirm the Node version is the issue. I was running a pipeline job on v12 and it didn't work. I switched to 16 and it is working. Thanks for clarifying.

@ViniciusTxr
Copy link
Author

humm, now based on the changelog of the commit I was able to understand the reason why it is not working, it is the Optional Chaining, since it was inserted from node v14.

Unfortunately I can't update my project to node v14+ because some important libs only work in v12-

I'm going to have to pin v1.2.2 of the library :(

Thanks @wzrdtales for sending the commit diff!!

@ViniciusTxr
Copy link
Author

@wzrdtales I think it's a good practice to put this information on the minimum version of node both in the readme and in the package.json (engine -> node)

Because there is no such information anywhere in the project

@wzrdtales
Copy link
Member

wzrdtales commented May 5, 2023

@ViniciusTxr upgrade your node version #74 (comment) already confirmed it. And please stay up to date for your own good. You're running software that makes you and your company attackable, which is irresponsible. We will never support software out of support since no one should run those, and we do not support insecure software. If you still decide to risk getting hacked, this is your choice, please stick to 1.2.4 then.

About the node version. Yes, I could put it. To be honest though. You can't expect anything to work if you still use windows xp.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants