cypress-realworld-app: Unable to Run on Windows

  1. Cloned the repository

  2. ran yarn install

  3. On running yarn start i got the below error: $ cp data/database-seed.json data/database.json 'cp' is not recognized as an internal or external command, operable program or batch file.

  4. Changed the cp commands to copy so they would work on windows.

  5. Then got the below error: $ copy data/database-seed.json data/database.json data\database-seed.json The file cannot be copied onto itself. 0 file(s) copied.

  6. Changed the / in package.json to \

  7. Then got the below error: NODE_ENV=development concurrently yarn:start:react yarn:start:api 'NODE_ENV' is not recognized as an internal or external command, operable program or batch file.

  8. Added SET before NODE_ENV

  9. No errors on running yarn start this time but also appears that nothing has started

  10. Run yarn cypress:open and try running a test

  11. Get errors due to app not starting

About this issue

  • Original URL
  • State: closed
  • Created 4 years ago
  • Comments: 23 (10 by maintainers)

Commits related to this issue

Most upvoted comments

@frogcatcher the pull request is code that has been sent to a specific branch, that’s where it’s tested and prepare before merging to the main one. The branch it was sent to is that one that I mentioned before. You can look for the different branches while being on the code tab

@ahoadshieldpay that might be happening because if you check the pull request, there are new dependencies added in the package.json. Try running yarn install again and it should be fixed

Thank you kevinold and everyone! Mine is working now. 😃

Hello and sorry to intrude in this post. Just want to say that I was having the same issue on Windows 10. However, I cloned the fix-windows branch and everything’s up and running perfectly now.

Thanks @kevinold. That was a quick response 👍

@ahoadshieldpay @kpmck

The fix just pushed to the fix-windows branch (https://github.com/cypress-io/cypress-realworld-app/pull/421/commits/2010c66ce94a115adc32d17f5ba35b4c7d0d9fd8) should fix your issue.

Simply git pull the latest from the fix-windows branch, run yarn install and yarn start should compile the application successfully.

cc @LucasL94

@kpmck Thanks for this report. Investigating further.

cc @ahoadshieldpay

@frogcatcher

You do not need to modify any of the code on the fix-windows branch.

Follow these steps to use the fix-windows branch

  1. git checkout fix-windows
  2. yarn install
  3. yarn dev

@LucasL94 we appreciate your efforts in helping out the community. 🙏