cypress-realworld-app: Unable to Run on Windows
-
Cloned the repository
-
ran yarn install
-
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.
-
Changed the cp commands to copy so they would work on windows.
-
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.
-
Changed the / in package.json to \
-
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.
-
Added SET before NODE_ENV
-
No errors on running yarn start this time but also appears that nothing has started
-
Run yarn cypress:open and try running a test
-
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
- resolve babel/compat-data to v7.9.0 to fix failed to compile error https://github.com/cypress-io/cypress-realworld-app/issues/420#issuecomment-644288685 — committed to cypress-io/cypress-realworld-app by deleted user 4 years ago
- Fix running RWA on Windows (#421) * install ncp and cross-env; update npm scripts * downgrade react scripts to 3.40 for windows; move tsnode config to file https://github.com/facebook/create-react-... — committed to cypress-io/cypress-realworld-app by deleted user 4 years ago
- Fix running RWA on Windows (#421) * install ncp and cross-env; update npm scripts * downgrade react scripts to 3.40 for windows; move tsnode config to file https://github.com/facebook/create-react-... — committed to obaidaattaee/cypress-realworld-app by deleted user 4 years ago
@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 fixedThank 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 thefix-windows
branch, runyarn install
andyarn 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
branchgit checkout fix-windows
yarn install
yarn dev
@LucasL94 we appreciate your efforts in helping out the community. 🙏