Skip to content
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

Not able to install cypress #30765

Open
dikshach1111 opened this issue Dec 15, 2024 · 1 comment
Open

Not able to install cypress #30765

dikshach1111 opened this issue Dec 15, 2024 · 1 comment
Labels
topic: installation Issue during installation or downloading Cypress

Comments

@dikshach1111
Copy link

dikshach1111 commented Dec 15, 2024

Current behavior

npm install cypress --save-dev
npm warn cleanup Failed to remove some directories [
npm warn cleanup [
npm warn cleanup '\\?\C:\Users\D\CypressAutomation\node_modules\dunder-proto',
npm warn cleanup [Error: EBUSY: resource busy or locked, rmdir 'C:\Users\D\CypressAutomation\node_modules\dunder-proto'] {
npm warn cleanup errno: -4082,
npm warn cleanup code: 'EBUSY',
npm warn cleanup syscall: 'rmdir',
npm warn cleanup path: 'C:\Users\D\CypressAutomation\node_modules\dunder-proto'
npm warn cleanup }
npm warn cleanup ],
npm warn cleanup [
npm warn cleanup '\\?\C:\Users\D\CypressAutomation\node_modules\side-channel',
npm warn cleanup [Error: EBUSY: resource busy or locked, rmdir 'C:\Users\D\CypressAutomation\node_modules\side-channel\node_modules\object-inspect'] {
npm warn cleanup errno: -4082,
npm warn cleanup code: 'EBUSY',
npm warn cleanup syscall: 'rmdir',
npm warn cleanup path: 'C:\Users\D\CypressAutomation\node_modules\side-channel\node_modules\object-inspect'
npm warn cleanup }
npm warn cleanup ]
npm warn cleanup ]
npm error code 1
npm error path C:\Users\D\CypressAutomation\node_modules\cypress
npm error command failed
npm error command C:\windows\system32\cmd.exe /d /s /c node index.js --exec install
npm error Installing Cypress (version: 13.16.1)
npm error
npm error [STARTED] Task without title.
npm error The Cypress App could not be downloaded.
npm error
npm error Does your workplace require a proxy to be used to access the Internet? If so, you must configure the HTTP_PROXY environment variable before downloading Cypress. Read more: https://on.cypress.io/proxy-configuration
npm error
npm error Otherwise, please check network connectivity and try again:
npm error
npm error ----------
npm error
npm error URL: https://download.cypress.io/desktop/13.16.1?platform=win32&arch=x64
npm error Error: self-signed certificate in certificate chain
npm error
npm error ----------
npm error
npm error Platform: win32-x64 (10.0.22631)
npm error Cypress Version: 13.16.1
npm error [FAILED] The Cypress App could not be downloaded.
npm error [FAILED]
npm error [FAILED] Does your workplace require a proxy to be used to access the Internet? If so, you must configure the HTTP_PROXY environment variable before downloading Cypress. Read more: https://on.cypress.io/proxy-configuration
npm error [FAILED]
npm error [FAILED] Otherwise, please check network connectivity and try again:
npm error [FAILED]
npm error [FAILED] ----------
npm error [FAILED]
npm error [FAILED] URL: https://download.cypress.io/desktop/13.16.1?platform=win32&arch=x64
npm error [FAILED] Error: self-signed certificate in certificate chain
npm error [FAILED]
npm error [FAILED] ----------
npm error [FAILED]
npm error [FAILED] Platform: win32-x64 (10.0.22631)
npm error [FAILED] Cypress Version: 13.16.1

Debug logs

No response

Cypress Version

13.16.1

Node version

V22.12.0

Package Manager

npm

Package Manager Version

10.9.0

Operating system

Windows

Operating System Version

23H2

Other

System type - 64-bit
Windows 11

@dikshach1111 dikshach1111 added the topic: installation Issue during installation or downloading Cypress label Dec 15, 2024
@MikeMcC399
Copy link
Contributor

@dikshach1111

EBUSY: resource busy or locked

This error can usually be cleared by restarting your Windows system. If necessary, manually delete the node_modules directory in your project.

npm error [STARTED] Task without title.
npm error The Cypress App could not be downloaded.
npm error
npm error Does your workplace require a proxy to be used to access the Internet? If so, you must configure the HTTP_PROXY environment variable before downloading Cypress. Read more: https://on.cypress.io/proxy-configuration
npm error
npm error Otherwise, please check network connectivity and try again:
npm error
npm error ----------
npm error
npm error URL: https://download.cypress.io/desktop/13.16.1?platform=win32&arch=x64
npm error Error: self-signed certificate in certificate chain

  • How is your Windows system connected to the Internet?

  • Are you on a corporate network?

  • Are you using a VPN connection?

If the above is true for you, did you read and apply the instructions from https://on.cypress.io/proxy-configuration ?
For Windows, the applicable section link is Set a proxy on Windows.

If you have checked this and made any necessary configuration changes, you can follow the Troubleshoot installation instructions.

If this is not successful, you can post the debug logs.

What happens if you try to download the Cypress binary cypress.zip in a web browser, such as Google Chrome, using the address https://download.cypress.io/desktop/13.16.1?platform=win32&arch=x64 ? If this fails, then you should be looking for problems on your client side or on your network.

Even if your issue is not due to a bug in Cypress, you can also request help from the Cypress technical community on Discord

Discord chat (click on button)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
topic: installation Issue during installation or downloading Cypress
Projects
None yet
Development

No branches or pull requests

2 participants