testing-library / cypress-testing-library

🐅 Simple and complete custom Cypress commands and utilities that encourage good testing practices.
http://npm.im/@testing-library/cypress
MIT License
1.8k stars 152 forks source link

npx cypress open fails on ubuntu 20.03 for missing GLIBCXX_3.4.29 #269

Closed nicofari closed 8 months ago

nicofari commented 8 months ago

Relevant code or config

What you did:

npx cypress open

What happened:

got this:

/snap/core20/current/lib/x86_64-linux-gnu/libstdc++.so.6: version `GLIBCXX_3.4.29' not found (required by /lib/x86_64-linux-gnu/libproxy.so.1) Failed to load module: /home/nik/snap/code/common/.cache/gio-modules/libgiolibproxy.so

DevTools listening on ws://127.0.0.1:36711/devtools/browser/1d01af6d-280f-4619-80c2-048bb749bb08 MESA-INTEL: warning: Ivy Bridge Vulkan support is incomplete

node:internal/process/esm_loader:40 internalBinding('errors').triggerUncaughtException( ^ [Object: null prototype] { [Symbol(nodejs.util.inspect.custom)]: [Function: [nodejs.util.inspect.custom]] }

Node.js v18.19.0

Reproduction repository:

Problem description:

I am new to cypress and trying first (dummy) test on very simple astro repo

Suggested solution:

it seems that cypress and/or npx (i don't know) are looking for a g++ library in snap folder which is, for some reason, missing the required GLIBCXX_3.4.29 dependency

My system is ubuntu 22.03 desktop. In the system there is another copy of the library libstdc++.so.6 which seems to have the required dependency, but cypress/npx does not find it ...

don't know how to solve this one ...

nicofari commented 8 months ago

Never mind, I was launching the command from the VS Code terminal (vscode was installed from snap). Launching the same command from a "natural" bash does not issue the problem...