0
0
Cypresstesting~10 mins

Cypress installation (npm install cypress) - Interactive Code Practice

Choose your learning style9 modes available
Practice - 5 Tasks
Answer the questions below
1fill in blank
easy

Complete the code to install Cypress using npm.

Cypress
npm [1] cypress
Drag options to blanks, or click blank then click option'
Astart
Bupdate
Cinstall
Dremove
Attempts:
3 left
💡 Hint
Common Mistakes
Using 'update' instead of 'install' will not install Cypress.
Using 'remove' deletes packages, not installs them.
2fill in blank
medium

Complete the command to save Cypress as a development dependency.

Cypress
npm install cypress [1]save-dev
Drag options to blanks, or click blank then click option'
A--
B--no
D--save
Attempts:
3 left
💡 Hint
Common Mistakes
Using '--no-save-dev' is not a valid npm flag.
Omitting the flag saves the package as a regular dependency.
3fill in blank
hard

Fix the error in the command to install Cypress globally.

Cypress
npm [1] -g cypress
Drag options to blanks, or click blank then click option'
Ainstall
Binstal
Cupdate
Dremove
Attempts:
3 left
💡 Hint
Common Mistakes
Misspelling 'install' causes the command to fail.
Using 'update' does not install new packages.
4fill in blank
hard

Fill both blanks to complete the command that installs Cypress and saves it as a dev dependency.

Cypress
npm [1] cypress [2]
Drag options to blanks, or click blank then click option'
Ainstall
B--save
C--save-dev
Dupdate
Attempts:
3 left
💡 Hint
Common Mistakes
Using '--save' instead of '--save-dev' saves Cypress as a regular dependency.
Using 'update' instead of 'install' does not install Cypress.
5fill in blank
hard

Fill all three blanks to write the command that installs Cypress, saves it as a dev dependency, and runs it immediately.

Cypress
npm [1] cypress [2] && npx [3]
Drag options to blanks, or click blank then click option'
Ainstall
B--save-dev
Ccypress
Dstart
Attempts:
3 left
💡 Hint
Common Mistakes
Using 'start' instead of 'cypress' after npx will cause an error.
Omitting '--save-dev' saves Cypress as a regular dependency.