question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

db-migrate: command not found

See original GitHub issue

Added db-migrate to package.json and ran npm install. On terminal bash, I get db-migrate: command not found after running. ./node_modules/db-migrate/bin/db-migrate works though.

Issue Analytics

  • State:closed
  • Created 10 years ago
  • Comments:11 (8 by maintainers)

github_iconTop GitHub Comments

2reactions
wiredprairiecommented, Dec 7, 2013

@codyhanson assume you meant npm install -g db-migrate to install globally (with the -g)?

0reactions
mnassarhubcommented, Apr 7, 2022

facing the same issue with db-migrate using it globally or locally give me the same message db-migrate: command not found using windows, "npm":"^8.1.2", "node":"16.13.1", "pg": "^8.7.3", db-migrate": "^0.11.13", "db-migrate-pg": "^1.2.2" when I add C:\Users\username\AppData\Roaming\npm\node_modules\db-migrate\bin to my path environment variables the problem solved

Read more comments on GitHub >

github_iconTop Results From Across the Web

Installation - db-migrate - Read the Docs
The following command will execute always your local version of db-migrate if you have installed a local version. If it does not find...
Read more >
migrate command not found error even if migrate is installed
But when I try to execute the command migrate in terminal it gives me error as migrate command not found Please find image...
Read more >
db-migrate - npm
Start using db-migrate in your project by running `npm i db-migrate`. There are 158 other projects in the npm registry using db-migrate.
Read more >
[Solved]-rake db:migrate bundle: command not found-ruby
Your problem may be due to the version of Ruby you are running. I had a similar issue before, I tried everything possible(installing...
Read more >
db-migrate/node-db-migrate - Gitter
I'm getting an error [ERROR] Error: Environment(s) 'all' not found. ... and using command: db-migrate up --config config/database.json -e all.
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found