I was trying to run the command "npx sequelize db:create" in my VSCode and ran into the error "npm ERR! could not determine executable to run". I tried various methods such as deleting my node modules then npm install, "rm -rf .git/hooks npm install" method, etc but it does not work.
Asked
Active
Viewed 651 times
0
-
Duplicate [npm ERR! could not determine executable to run](https://stackoverflow.com/questions/67833794/npm-err-could-not-determine-executable-to-run) – esqew Oct 04 '22 at 04:30
-
I tried all those method in there and it still does not work – Elphinstone Oct 04 '22 at 04:39
1 Answers
1
I was having the same issue but in a CD pipeline. Instead of using npx sequelize
use npx sequelize-cli
:
npx sequelize-cli db:create
npx sequelize-cli db:migrate

Harith
- 539
- 5
- 16