Should cypress npm package be installed locally?

Viewed 888

I'm building a CI/CD pipeline for end to end testing where devs would use multiple instances of cypress, in different servers and well local env. To avoid installation problems , as well version conflicts should the npm packages installed local or global? or should they be already installed in repository but defined versions in json package then all the person needs to do is clone and run?

1 Answers

You should install Cypress via npm (or yarn) and have cypress listed in your package.json devDependencies.

This way, someone only needs to clone the repo, run npm install, and they'll have Cypress installed.

Here's the Cypress Docs on Continuous Integration

Related