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

bug: ./setupDB.sh script in Git Bash gives MODULE_NOT_FOUND error when Local Docker setup is chosen in Windows #390

Open
rakeshs51 opened this issue May 5, 2024 · 3 comments
Labels
bug Something isn't working

Comments

@rakeshs51
Copy link

rakeshs51 commented May 5, 2024

Describe the bug
When Local DB with Docker is chosen for Database setup, I get the error, Error: Cannot find module 'D:\Code\100x\daily-code-main\node_modules\node_modules\prisma\build\index.js'

Since this error comes after Migrating DB log, this means it is produced by npx prisma migrate dev command.

Possible Solutions Tried:

  • Deleting node_modules
  • Reinstalling node js

To Reproduce
Steps to reproduce the behavior:

  1. I am using Windows Machine
  2. run ./setupDB.sh command inside Git Bash in rootDir/packages/db directory
  3. Select Local DB with Docker Setup as config
  4. An error saying Error: Cannot find module 'D:\Code\100x\daily-code-main\node_modules\node_modules\prisma\build\index.js' pops up.

Expected behavior
The project should run locally at the expected port.

Screenshots or GIFs
image

Info (please complete the following information):

  • Edge
  • Editor: VS Code

Additional context

@rakeshs51 rakeshs51 added the bug Something isn't working label May 5, 2024
@rakeshs51 rakeshs51 changed the title bug: ./setupDB.sh script gives MODULE_NOT_FOUND error when Local Docker setup is chosen bug: ./setupDB.sh script in Git Bash gives MODULE_NOT_FOUND error when Local Docker setup is chosen in Windows May 5, 2024
@Amarprasad33
Copy link

I am also facing the same issue right now, does anyone know the fix ?

@iharsh02
Copy link

iharsh02 commented May 8, 2024

replace npx with yarn inside your setupDB.sh

image

@vr1Ravi
Copy link

vr1Ravi commented May 14, 2024

@iharsh02 thank you, I was also facing the same issue. now solved

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

4 participants