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

Cannot install cypress on Ubuntu 22.04 #28944

Closed
nicfv opened this issue Feb 14, 2024 · 5 comments
Closed

Cannot install cypress on Ubuntu 22.04 #28944

nicfv opened this issue Feb 14, 2024 · 5 comments
Labels
topic: installation Issue during installation or downloading Cypress

Comments

@nicfv
Copy link

nicfv commented Feb 14, 2024

Current behavior

Hello! There is something strange going on with the installation, whenever I run npm install or npm i, I get this error (with verbose option.) It does not create package-lock.json nor node_modules and of course, nothing is actually installed. Here's where the error actually starts:

1002 verbose stack Error: command failed
1002 verbose stack     at ChildProcess.<anonymous> (/usr/local/lib/node_modules/npm/node_modules/@npmcli/promise-spawn/lib/index.js:53:27)
1002 verbose stack     at ChildProcess.emit (node:events:518:28)
1002 verbose stack     at maybeClose (node:internal/child_process:1105:16)
1002 verbose stack     at ChildProcess._handle.onexit (node:internal/child_process:305:5)
1003 verbose pkgid cypress@13.6.4
1004 verbose cwd /home/nic/Desktop/grafana-v10.3.3/data/plugins/test-npm
1005 verbose Linux 6.5.0-17-generic
1006 verbose node v20.11.1
1007 verbose npm  v10.4.0
1008 error code 1
1009 error path /home/nic/Desktop/grafana-v10.3.3/data/plugins/test-npm/node_modules/cypress
1010 error command failed
1011 error command sh -c node index.js --exec install
1012 verbose exit 1

This is with an absolutely clean directory with only a package.json file created by npm init -y. I've also tried installing other versions of cypress, but with similar results. I have no idea what the issue may be- please help!

Desired behavior

I expect to be able to install this dependency with no errors.

Test code to reproduce

npm init -y
npm install --verbose cypress@13.6.4

Cypress Version

Any (I've tried many versions including latest)

Node version

Node 20.11.1, NPM 10.4.0

Operating System

Ubuntu 22.04

Debug Logs

N/A

Other

See the installation log here: log.log

@nicfv
Copy link
Author

nicfv commented Feb 14, 2024

@MikeMcC399
Copy link
Contributor

@nicfv

Your installation is failing in the postinstall phase. Try the following to get debug information for this phase as well.

npm install cypress --save-dev --ignore-scripts --verbose
export DEBUG=cypress:*
npx cypress install

@jennifer-shehane jennifer-shehane added stage: needs information Not enough info to reproduce the issue topic: installation Issue during installation or downloading Cypress labels Feb 15, 2024
@nicfv nicfv changed the title Cannot install cypress on Ubutnu 22.04 Cannot install cypress on Ubuntu 22.04 Feb 16, 2024
@MikeMcC399
Copy link
Contributor

@nicfv
Did you make progress here?

@jennifer-shehane
Copy link
Member

Closing as stale.

@jennifer-shehane jennifer-shehane closed this as not planned Won't fix, can't repro, duplicate, stale Feb 26, 2024
@jennifer-shehane jennifer-shehane removed the stage: needs information Not enough info to reproduce the issue label Feb 26, 2024
@lucasazevedo01
Copy link

I also need help, I can install Cypress on Ubuntu 22.04 LTS but it simply stops responding and consequently crashes and displays the following error

The Test Runner unexpectedly exited via a close event with signal SIGKILL

Please search Cypress documentation for possible solutions:

https://on.cypress.io

Check if there is a GitHub issue describing this crash:

https://github.com/cypress-io/cypress/issues

Consider opening a new issue.


Platform: linux-x64 (Ubuntu - 22.04)
Cypress Version: 13.7.0

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

4 participants