Title: Peer dependency missing for mocha reporters but cannot install Mocha · Issue #478 · browserstack/browserstack-cypress-cli · GitHub
Open Graph Title: Peer dependency missing for mocha reporters but cannot install Mocha · Issue #478 · browserstack/browserstack-cypress-cli
X Title: Peer dependency missing for mocha reporters but cannot install Mocha · Issue #478 · browserstack/browserstack-cypress-cli
Description: Hello there, I get the following error when mocha is included as a dependency inside my browserstack.json: npm ERR! code EEXIST npm ERR! path .\node_modules\.bin\_mocha npm ERR! Refusing to delete .\node_modules\.bin\_mocha: is outside ....
Open Graph Description: Hello there, I get the following error when mocha is included as a dependency inside my browserstack.json: npm ERR! code EEXIST npm ERR! path .\node_modules\.bin\_mocha npm ERR! Refusing to delete ...
X Description: Hello there, I get the following error when mocha is included as a dependency inside my browserstack.json: npm ERR! code EEXIST npm ERR! path .\node_modules\.bin\_mocha npm ERR! Refusing to delete ...
Opengraph URL: https://github.com/browserstack/browserstack-cypress-cli/issues/478
X: @github
Domain: github.com
IPv4 address: 140.82.114.3
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Peer dependency missing for mocha reporters but cannot install Mocha","articleBody":"Hello there, \r\n\r\nI get the following error when mocha is included as a dependency inside my `browserstack.json`:\r\n\r\n```\r\nnpm ERR! \r\ncode EEXIST\r\nnpm ERR! path .\\node_modules\\.bin\\_mocha\r\n\r\nnpm ERR!\r\n Refusing to delete .\\node_modules\\.bin\\_mocha: is outside .\\node_modules\\mocha and not a link\r\nnpm ERR! File exists: .\\node_modules\\.bin\\_mocha\r\nnpm ERR! Remove the existing file and try again, or run npm\r\nnpm ERR! with --force to overwrite files recklessly.\r\n```\r\n\r\nProblematically, the deps required for Cypress to generate reports are as follows:\r\n\r\n```json\r\n \"npm_dependencies\": {\r\n \"@frsource/cypress-plugin-visual-regression-diff\": \"2.3.12\",\r\n \"@types/chance\": \"1.1.3\",\r\n \"cypress\": \"11.2.0\",\r\n \"mocha\": \">=7.0.0\",\r\n \"chance\": \"1.1.9\",\r\n \"cypress-mochawesome-reporter\": \"3.2.3\",\r\n \"cypress-multi-reporters\": \"1.6.2\",\r\n \"cypress-wait-for-stable-dom\": \"0.1.0\",\r\n \"mocha-junit-reporter\": \"2.2.0\"\r\n }\r\n```\r\n\r\nI am probably going to have to remove the custom reporters on this branch for now just to get BrowserStack running the tests, would be good if someone knows a workaround or fix for this.","author":{"url":"https://github.com/GrayedFox","@type":"Person","name":"GrayedFox"},"datePublished":"2023-02-13T05:27:17Z","url":"https://github.com/browserstack/browserstack-cypress-cli/issues/478"}
| react-profiling | 0 |
| react-import-map | react,react-dom,react-dom/client,react-dom/profiling,react-is,react/compiler-runtime,react/jsx-dev-runtime,react/jsx-runtime,scheduler@b8488ee2c322 |
| route-pattern | /_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format) |
| route-controller | voltron_issues_fragments |
| route-action | issue_layout |
| fetch-nonce | v2:764b7fa8-3c38-7481-ed46-96ec7411fd0c |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | 904A:1FAF:1BB7D50:2538FA7:6B044028 |
| html-safe-nonce | 51f603aef7a8735551cb0bffceecb24be5743ce2a0f1dd93e8804d7cf61d3506 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiI5MDRBOjFGQUY6MUJCN0Q1MDoyNTM4RkE3OjZCMDQ0MDI4IiwidmlzaXRvcl9pZCI6Ijg0NjA4OTMyMzMzOTUwMjM5MTIiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ== |
| visitor-hmac | 3b8f449348e399cedaf685116c517d3e3d5474715bebb7bae3f0475514793673 |
| hovercard-subject-tag | issue:1581687485 |
| github-keyboard-shortcuts | repository,issues,copilot |
| google-site-verification | Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I |
| octolytics-url | https://collector.github.com/github/collect |
| analytics-location | / |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/browserstack/browserstack-cypress-cli/478/issue_layout |
| twitter:image | https://opengraph.githubassets.com/9fce3c15523bd772f0fb1f694ea50b0837126aee68fac130e1b157d1700afa89/browserstack/browserstack-cypress-cli/issues/478 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/9fce3c15523bd772f0fb1f694ea50b0837126aee68fac130e1b157d1700afa89/browserstack/browserstack-cypress-cli/issues/478 |
| og:image:alt | Hello there, I get the following error when mocha is included as a dependency inside my browserstack.json: npm ERR! code EEXIST npm ERR! path .\node_modules\.bin\_mocha npm ERR! Refusing to delete ... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | GrayedFox |
| hostname | github.com |
| expected-hostname | github.com |
| None | 9185ccfefd80c1ff2d9ddcdb0cd2becf46b5a1efbbf30741a895e4bb8de25e64 |
| turbo-cache-control | no-preview |
| go-import | github.com/browserstack/browserstack-cypress-cli git https://github.com/browserstack/browserstack-cypress-cli.git |
| octolytics-dimension-user_id | 1119453 |
| octolytics-dimension-user_login | browserstack |
| octolytics-dimension-repository_id | 242935045 |
| octolytics-dimension-repository_nwo | browserstack/browserstack-cypress-cli |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 242935045 |
| octolytics-dimension-repository_network_root_nwo | browserstack/browserstack-cypress-cli |
| turbo-body-classes | logged-out env-production page-responsive |
| disable-turbo | false |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | 06dc448a76fe4751ac1db26524aefa3aa3e889a8 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
| react-app-name | issues |
Links:
| Server | github.com |
| Content-Type | text/html; charset=utf-8 |
| Cache-Control | max-age=0, private, must-revalidate |
Viewport: width=device-width