So you have a production application, and it doesn't use Cypress yet.
In this course, you'll learn how to add Cypress to your existing npm application, and run it for the first time.
Recommended Homework:
I get this error when I run: (npm bin)/cypress open parse error near `/cypress'
I use zsh.
Yep, same :/
After reading several stackoverflow posts and messing around with my .zshrc file for a while, just running npx cypress open
has the same result
Hey guys, thanks for checking out the course and sorry for the confusion! The updated transcripts will be live soon, but there's a typo there. $ $(npm bin)/cypress open
(notice the extra dollar sign) will perform shell expansion. You can see this if you run echo $(npm bin)
, which will evaluate and show you your npm bin
path. npx cypress open
is another good solution!
When encountering the following problem when running frontend
e.g. on a windows machine:
'PORT' is not recognized as an internal or external command,
operable program or batch file.
Use cross-env as suggested here
"frontend": "cross-env PORT=5000 REACT_APP_API_URL=http://localhost:3000 react-scripts start",
Is this working? lot of errors when I tried the steps listed and eventually cypress failed to run
@shwetakamaraddi
What I did to get rid of the errors I was running into, I did:
npm r -g watchman
brew install watchman