Search code examples
cypressbrowserstack

Running Cypress Script on Browser Stack getting an error spawn npm ENOENT


I was trying to Integrate my Cypress scripts and execute in Browser Stack. While executing the script from the Visual code terminal using browserstack-cypress run I am receiving the following error. Appreciate if someone can advise on how to resolve

Issue that shows is Erro: spwan npm ENOENT

enter image description here


Solution

  • Keeping "cache_dependencies": false in run_settings in browserstack.json may help. Reference: https://www.browserstack.com/docs/automate/cypress/npm-packages#npm-dependency-caching