-
Notifications
You must be signed in to change notification settings - Fork 1.1k
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 npm install with snap Node.js on Ubuntu fails to install Cypress binary #5868
Comments
Sounds fine to document for now. |
It will be a while until I get around to this. I hope there will be some feedback soon from the Node.js snap folks to understand the root cause and who could fix it. For the moment I just wanted to document the issue so there is a place to add any new facts. |
This comment was marked as outdated.
This comment was marked as outdated.
Workaround VerificationUbuntu snap install node --classic --channel=20
echo node version $(node -v)
echo npm version $(npm -v)
rm -rf ~/.cache/Cypress
mkdir cy-snap-test
cd cy-snap-test
npm install cypress --save-dev --foreground-scripts
npx cypress verify Log
|
There wasn't any indication that the snap folks would look at resolving the Cypress installation issue in this environment, so there is no timeline at all for a resolution. It therefore makes sense to document the workaround.
|
On Ubuntu 22.04 with snap installed nodejs, one of the portal dependencies fails to install: cypress-io/cypress-documentation#5868 We'll apply the recommended workaround.
On Ubuntu 22.04 with snap installed nodejs, one of the portal dependencies fails to install: cypress-io/cypress-documentation#5868 We'll apply the recommended workaround.
On Ubuntu 22.04 with snap installed nodejs, one of the portal dependencies fails to install: cypress-io/cypress-documentation#5868 We'll apply the recommended workaround.
Subject
Guides https://docs.cypress.io/guides/getting-started/installing-cypress#npm-install
Description
If an attempt is made to install Cypress on Ubuntu using npm that has been installed via snap Node.js, then it fails to install the Cypress binary.
For example:
Typical log lines include output similar to the following:
If this is an on-going restriction, then it may need to be documented here. A workaround is to use:
Yarn is not affected. The following works correctly:
The text was updated successfully, but these errors were encountered: