example-todo icon indicating copy to clipboard operation
example-todo copied to clipboard

Cannot run `yarn redwood prisma migrate dev` command

Open isaac-owens opened this issue 3 years ago • 1 comments

After yarn command receiving error: error Couldn't find a package.json file in "/Users/iowens/Repos/Redwood/example_todo" info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command. I have tried copying in the package.json file from the remote repo into my local and still am receiving this error.

isaac-owens avatar Jun 11 '21 19:06 isaac-owens

Hi @isaac-owens I just upgrade the main branch to v0.33.3 including a lot of code modifications. Not sure if that is directly related to your issue or not, but I suggest you pull in changes from the repo main if possible.

I'm not sure why you'd be encountering that error. I'm assuming you did the following:

  1. Clone the repo locally using git (either from fork or from this repo): git clone [email protected]:redwoodjs/example-todo.git
  2. cd /Users/iowens/Repos/Redwood/example_todo (your directory cloned into)
  3. yarn
  4. yarn redwood prisma migrate dev
  5. yarn redwood dev

These steps will 1) install node_modules packages 2) apply the data model to a local SQLite that it will also create and 3) run the dev server and open in a browser

I just ran through these steps and everything completed successfully. Is there anything you might have done differently during the setup?

Lastly, for quicker help, you might want to try our online communities:

  • https://community.redwoodjs.com
  • https://discord.gg/jjSYEQd

And the Redwood Tutorial is also a fantastic way to get started!

  • https://learn.redwoodjs.com/docs/tutorial/welcome-to-redwood/

thedavidprice avatar Jun 11 '21 22:06 thedavidprice