Cypress - Install It On Empty Project
Solution 1:
Steps to install cypress:
Step 1: Create your project folder, go inside the folder from the terminal using cd folder_path/folder_name
and run npm init
. This will create your package.json
file inside your project folder. You can do this in a sperate project or create some folder in your development project and do it there as well.
Step 2: Now, Run the command npm install cypress --save-dev
. This will add the cypress as a dev dependency inside your package.json
file. Once you have successfully installed this, you should see one more file package-lock.json
and an folder node_modules
being created
Step 3: Run the command node_modules/.bin/cypress open
or node_modules/.bin/cypress run
to run cypress.
Solution 2:
You need to add --save or --save-dev to save it to package.json file. eg: npm install cypress --save
. https://docs.npmjs.com/cli/v6/commands/npm-install
Post a Comment for "Cypress - Install It On Empty Project"