Reputation: 91
I have updated the cypress version from 3.1.3 to 3.1.4 and after that when ever I am running the npm run cypress:open command, it is throwing error "'cypress' is not recognized as an internal or external command,operable program or batch file.npm ERR! code ELIFECYCLE npm ERR! errno 1 npm ERR! [email protected] cypress:open: cypress open --env aaa=test
npm ERR! Exit status 1"
Any advice, how to solve this issue?
Upvotes: 9
Views: 35758
Reputation: 1
I installed it again by executing
npm install cypress --save-dev
and then running using below command and it worked
\\node_modules\.bin\cypress open
Upvotes: 0
Reputation: 1934
I just installed it again by executing
npm install cypress --save-dev
And then when running it again it worked.
Upvotes: 0
Reputation: 167
if you installed cypress locally in your project, you need to run your command from node_modules/.bin
, for example ./node_modules/.bin/cypress run
if you want to run cypress run
or just run npx cypress run
that just do the same
Upvotes: 1