-
Notifications
You must be signed in to change notification settings - Fork 3.2k
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
Error code 1, npm error [STARTED] Task without title., error during cypress postinstall after running "npm install cypress" #31005
Comments
Someone else had an issue with a cafile and install that had the same error. #30064 I might also check antivirus to see that it’s not blocking anything, antivirus blocking is more common on windows. |
Regarding the error message:
You may like to try the Troubleshoot installation steps for npm to see if the debug logs give you more information. I don't promise that this will be helpful, but it is worth trying: CYPRESS_INSTALL_BINARY=0 npm install cypress --save-dev
DEBUG=cypress:cli* npx cypress install |
@jennifer-shehane I don't know where to find the .npmrc file in order to change its values, there seems to be many on my computer... @MikeMcC399 thank you, running the commands was actually the first time the installation actually worked. I then tried the second line: So if I understand correctly, the binary installation wasn't working properly in my original issue, so your solution skips it entirely. Is this what I want though? Or does it mean that my installation is now incomplete? |
If you closed the issue yourself, then your should be able to re-open it yourself ⬇ |
What you achieved so far is to install the Cypress npm package. Your installation is incomplete. The Cypress binary is not installed because of the environment variable which prevented it. The original debug instructions are more suited to being run in a Git Bash environment on Windows. If you are running in PowerShell then the easiest way is probably to close the terminal window and open it again before you execute the second instruction set DEBUG=cypress:cli* npx cypress install |
@MikeMcC399 npx cypress install
|
The debug logs show that no proxy is set. Your IT team may be able to help you with any necessary proxy or discovery of your "local issuer certificate" which is a local network topic. It's correct that you can have multiple .npmrc files - check the .npmrc documentation Your choice of PowerShell terminal is fine. Sorry that the instructions weren't exactly correct for this! |
@MikeMcC399 As stated earlier, my workplace doesn't seem to need a proxy, proxy is disabled in my settings and my internet works completely fine. Also, the "cafile" mentioned in #30064 doesn't seem to be the issue, because changing the value with the command A coworker suggested that the issue might be related to VPN - which I'll further investigate and give updates on here if I find anything. |
I'm really surprised that nobody told me to try this yet, but I finally managed to find the solution in a StackOverflow page (IT team never got back to me lol). If anyone else encounters this issue and ends up here, the solution that worked for me is to run the PowerShell command https://cheapsslweb.com/blog/fixing-unable-to-get-issuer-cert-locally-error/ https://stackoverflow.com/questions/68111460/error-unable-to-get-local-issuer-certificate |
Thanks for getting back with your workaround and your caution about using it! |
Current behavior
When I try to download cypress through npm, I get the issue shown in the logs below. It seems to be in the postinstall phase.
I've tried the following:
npm config set strict-ssl false
I DO have internet. I have found another similar issue and the only solution provided was to check for internet connection issues (reference).
To answer the questions provided in this issue,
I have tried downloading the binary version and have had no issue with that whatsoever. However, I have read here that npm is the best way to go.
I can also provide the entire log file if needed.
Thank you in advance for your help!
Debug logs
Cypress Version
14.0.1
Node version
22.13.1
Package Manager
npm
Package Manager Version
10.9.2
Operating system
Windows
Operating System Version
23H2, on Windows 11 Enterprise
Other
Here is proof (in french, sorry) that proxy is not enabled on my computer.
The text was updated successfully, but these errors were encountered: