-
Notifications
You must be signed in to change notification settings - Fork 10
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
cypress-ntlm-auth can not resolve cypress (cypress-ntlm-auth requires Cypress to be installed) #240
Comments
I have very limited experience with yarn but in principle it should work.
When the plugin can’t find cypress, the issue is usually that cypress was
installed globally but the plugin was installed locally (in project
folder). Verify that both cypress and plugin are installed locally.
/Björn W
Skickat från min iPhone
tors 7 sep. 2023 kl. 15:16 skrev SarunasMaro ***@***.***>:
… Hello,
I have "cypress": "12.9.0" and "cypress-ntlm-auth": "^4.1.2" versions
installed on my machine and when I run commands yarn run cypress-ntlm run
or yarn run cypress-ntlm open, I get the following error: "cypress-ntlm-auth
requires Cypress to be installed". Looking at the source code in
src/startup/cypress.loader.js and src/startup/startup.ts it seems that
cypress-ntlm-auth can not resolve cypress. Our project has enjoyed
Cypress in combination with cypress-ntlm-auth in the past a lot. Could you
please help?
Machine: Macbook Pro M1 chip
OS: MacOS Ventura 13.5.1
Package manager: Yarn
Package installation strategy: Yarn Plug'n'Play
—
Reply to this email directly, view it on GitHub
<#240>, or unsubscribe
<https://github.com/notifications/unsubscribe-auth/ABCHR3FYKKAAGQ4PBQJ7P5DXZHCJBANCNFSM6AAAAAA4O4PVII>
.
You are receiving this because you are subscribed to this thread.Message
ID: ***@***.***>
|
I can confirm that Cypress and cypress-ntlm-auth are both locally installed devDependencies. The testing module is the only place in the project that they are installed in. |
After a bit of read-up it seems to me that the Plug'n'Play strategy changes quite a bit how installed packages are stored. Most likely this results in that NodeJS cannot detect that cypress is actually installed. First, try avoiding the Plug'n'Play strategy, at least for the cypress part of your project. If you really want to make that work too, try setting a path to where cypress can be found as a second argument to the |
Well, I can't access these files as they are zipped. Could you maybe add that line of code in the next release? |
Not sure what you mean, if the files you need to access are zipped, just unzip them. |
Hello,
I have
"cypress": "12.9.0"
and"cypress-ntlm-auth": "^4.1.2"
versions installed on my machine and when I run commandsyarn run cypress-ntlm run
oryarn run cypress-ntlm open
, I get the following error:"cypress-ntlm-auth requires Cypress to be installed"
. Looking at the source code insrc/startup/cypress.loader.js
andsrc/startup/startup.ts
it seems thatcypress-ntlm-auth
can not resolvecypress
. Our project has enjoyed Cypress in combination with cypress-ntlm-auth in the past a lot. Could you please help?Machine: Macbook Pro M1 chip
OS: MacOS Ventura 13.5.1
Package manager: Yarn
Package installation strategy: Yarn Plug'n'Play
The text was updated successfully, but these errors were encountered: