We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
On Ubuntu 24.04, Cypress installation fails.
Create package.json, with
package.json
{ "devDependencies": { "cypress": "^13.14.1" } }
Then: npm install --verbose
npm install --verbose
Result:
npm info run [email protected] postinstall node_modules/cypress node index.js --exec install npm info run [email protected] postinstall { code: 1, signal: null } npm verb stack Error: command failed npm verb stack at ChildProcess.<anonymous> (/snap/node/8530/lib/node_modules/npm/node_modules/@npmcli/promise-spawn/lib/index.js:53:27) npm verb stack at ChildProcess.emit (node:events:519:28) npm verb stack at maybeClose (node:internal/child_process:1105:16) npm verb stack at ChildProcess._handle.onexit (node:internal/child_process:305:5) npm verb pkgid [email protected]
$ npm install --verbose npm verb cli /snap/node/8530/bin/node /snap/node/8530/bin/npm npm info using [email protected] npm info using [email protected] npm verb title npm install npm verb argv "install" "--loglevel" "verbose" npm verb logfile logs-max:10 dir:/home/***/.npm/_logs/2024-09-02T11_04_45_816Z- npm verb logfile /home/***/.npm/_logs/2024-09-02T11_04_45_816Z-debug-0.log npm http fetch GET 200 https://registry.npmjs.org/cypress 10ms (cache hit) npm http fetch GET 200 https://registry.npmjs.org/arch 7ms (cache hit) npm http fetch GET 200 https://registry.npmjs.org/tmp 10ms (cache hit) npm http fetch GET 200 https://registry.npmjs.org/debug 10ms (cache hit) npm http fetch GET 200 https://registry.npmjs.org/execa 13ms (cache hit) npm http fetch GET 200 https://registry.npmjs.org/dayjs 17ms (cache hit) npm http fetch GET 200 https://registry.npmjs.org/getos 20ms (cache hit) npm http fetch GET 200 https://registry.npmjs.org/chalk 23ms (cache hit) npm http fetch GET 200 https://registry.npmjs.org/is-ci 25ms (cache hit) npm http fetch GET 200 https://registry.npmjs.org/yauzl 24ms (cache hit) npm http fetch GET 200 https://registry.npmjs.org/buffer 23ms (cache hit) npm http fetch GET 200 https://registry.npmjs.org/lodash 20ms (cache hit) npm http fetch GET 200 https://registry.npmjs.org/listr2 29ms (cache hit) npm http fetch GET 200 https://registry.npmjs.org/ospath 29ms (cache hit) npm http fetch GET 200 https://registry.npmjs.org/semver 26ms (cache hit) npm http fetch GET 200 https://registry.npmjs.org/process 21ms (cache hit) npm http fetch GET 200 https://registry.npmjs.org/bluebird 23ms (cache hit) npm http fetch GET 200 https://registry.npmjs.org/cachedir 21ms (cache hit) npm http fetch GET 200 https://registry.npmjs.org/figures 32ms (cache hit) npm http fetch GET 200 https://registry.npmjs.org/enquirer 16ms (cache hit) npm http fetch GET 200 https://registry.npmjs.org/lazy-ass 15ms (cache hit) npm http fetch GET 200 https://registry.npmjs.org/fs-extra 19ms (cache hit) npm http fetch GET 200 https://registry.npmjs.org/minimist 19ms (cache hit) npm http fetch GET 200 https://registry.npmjs.org/blob-util 15ms (cache hit) npm http fetch GET 200 https://registry.npmjs.org/untildify 12ms (cache hit) npm http fetch GET 200 https://registry.npmjs.org/commander 17ms (cache hit) npm http fetch GET 200 https://registry.npmjs.org/cli-cursor 19ms (cache hit) npm http fetch GET 200 https://registry.npmjs.org/executable 17ms (cache hit) npm http fetch GET 200 https://registry.npmjs.org/cli-table3 21ms (cache hit) npm http fetch GET 200 https://registry.npmjs.org/log-symbols 15ms (cache hit) npm http fetch GET 200 https://registry.npmjs.org/extract-zip 17ms (cache hit) npm http fetch GET 200 https://registry.npmjs.org/common-tags 19ms (cache hit) npm http fetch GET 200 https://registry.npmjs.org/pretty-bytes 11ms (cache hit) npm http fetch GET 200 https://registry.npmjs.org/@cypress%2fxvfb 13ms (cache hit) npm http fetch GET 200 https://registry.npmjs.org/@types%2fsizzle 12ms (cache hit) npm http fetch GET 200 https://registry.npmjs.org/eventemitter2 12ms (cache hit) npm http fetch GET 200 https://registry.npmjs.org/supports-color 12ms (cache hit) npm http fetch GET 200 https://registry.npmjs.org/proxy-from-env 14ms (cache hit) npm http fetch GET 200 https://registry.npmjs.org/@cypress%2frequest 12ms (cache hit) npm http fetch GET 200 https://registry.npmjs.org/request-progress 9ms (cache hit) npm http fetch GET 200 https://registry.npmjs.org/check-more-types 13ms (cache hit) npm http fetch GET 200 https://registry.npmjs.org/is-installed-globally 10ms (cache hit) npm http fetch GET 200 https://registry.npmjs.org/@types%2fsinonjs__fake-timers 9ms (cache hit) npm http fetch GET 200 https://registry.npmjs.org/combined-stream 4ms (cache hit) npm http fetch GET 200 https://registry.npmjs.org/forever-agent 5ms (cache hit) npm http fetch GET 200 https://registry.npmjs.org/aws-sign2 6ms (cache hit) npm http fetch GET 200 https://registry.npmjs.org/form-data 6ms (cache hit) npm http fetch GET 200 https://registry.npmjs.org/caseless 8ms (cache hit) npm http fetch GET 200 https://registry.npmjs.org/extend 8ms (cache hit) npm http fetch GET 200 https://registry.npmjs.org/aws4 9ms (cache hit) npm http fetch GET 200 https://registry.npmjs.org/http-signature 11ms (cache hit) npm http fetch GET 200 https://registry.npmjs.org/json-stringify-safe 8ms (cache hit) npm http fetch GET 200 https://registry.npmjs.org/mime-types 9ms (cache hit) npm http fetch GET 200 https://registry.npmjs.org/performance-now 9ms (cache hit) npm http fetch GET 200 https://registry.npmjs.org/is-typedarray 14ms (cache hit) npm http fetch GET 200 https://registry.npmjs.org/isstream 14ms (cache hit) npm http fetch GET 200 https://registry.npmjs.org/qs 10ms (cache hit) npm http fetch GET 200 https://registry.npmjs.org/tough-cookie 9ms (cache hit) npm http fetch GET 200 https://registry.npmjs.org/safe-buffer 12ms (cache hit) npm http fetch GET 200 https://registry.npmjs.org/uuid 11ms (cache hit) npm http fetch GET 200 https://registry.npmjs.org/tunnel-agent 17ms (cache hit) npm http fetch GET 200 https://registry.npmjs.org/lodash.once 16ms (cache hit) npm http fetch GET 200 https://registry.npmjs.org/base64-js 16ms (cache hit) npm http fetch GET 200 https://registry.npmjs.org/ieee754 15ms (cache hit) npm http fetch GET 200 https://registry.npmjs.org/ansi-styles 13ms (cache hit) npm http fetch GET 200 https://registry.npmjs.org/restore-cursor 13ms (cache hit) npm http fetch GET 200 https://registry.npmjs.org/@colors%2fcolors 6ms (cache hit) npm http fetch GET 200 https://registry.npmjs.org/string-width 10ms (cache hit) npm http fetch GET 200 https://registry.npmjs.org/ms 8ms (cache hit) npm http fetch GET 200 https://registry.npmjs.org/ansi-colors 8ms (cache hit) npm http fetch GET 200 https://registry.npmjs.org/strip-ansi 8ms (cache hit) npm http fetch GET 200 https://registry.npmjs.org/onetime 7ms (cache hit) npm http fetch GET 200 https://registry.npmjs.org/is-stream 8ms (cache hit) npm http fetch GET 200 https://registry.npmjs.org/signal-exit 6ms (cache hit) npm http fetch GET 200 https://registry.npmjs.org/get-stream 9ms (cache hit) npm http fetch GET 200 https://registry.npmjs.org/cross-spawn 10ms (cache hit) npm http fetch GET 200 https://registry.npmjs.org/merge-stream 9ms (cache hit) npm http fetch GET 200 https://registry.npmjs.org/npm-run-path 9ms (cache hit) npm http fetch GET 200 https://registry.npmjs.org/pify 7ms (cache hit) npm http fetch GET 200 https://registry.npmjs.org/human-signals 11ms (cache hit) npm http fetch GET 200 https://registry.npmjs.org/strip-final-newline 11ms (cache hit) npm http fetch GET 200 https://registry.npmjs.org/escape-string-regexp 7ms (cache hit) npm http fetch GET 200 https://registry.npmjs.org/@types%2fyauzl 10ms (cache hit) npm http fetch GET 200 https://registry.npmjs.org/at-least-node 7ms (cache hit) npm http fetch GET 200 https://registry.npmjs.org/graceful-fs 7ms (cache hit) npm http fetch GET 200 https://registry.npmjs.org/jsonfile 10ms (cache hit) npm http fetch GET 200 https://registry.npmjs.org/global-dirs 8ms (cache hit) npm http fetch GET 200 https://registry.npmjs.org/universalify 11ms (cache hit) npm http fetch GET 200 https://registry.npmjs.org/async 12ms (cache hit) npm http fetch GET 200 https://registry.npmjs.org/ci-info 14ms (cache hit) npm http fetch GET 200 https://registry.npmjs.org/rfdc 14ms (cache hit) npm http fetch GET 200 https://registry.npmjs.org/is-path-inside 16ms (cache hit) npm http fetch GET 200 https://registry.npmjs.org/p-map 14ms (cache hit) npm http fetch GET 200 https://registry.npmjs.org/through 14ms (cache hit) npm http fetch GET 200 https://registry.npmjs.org/rxjs 18ms (cache hit) npm http fetch GET 200 https://registry.npmjs.org/colorette 19ms (cache hit) npm http fetch GET 200 https://registry.npmjs.org/wrap-ansi 19ms (cache hit) npm http fetch GET 200 https://registry.npmjs.org/log-update 19ms (cache hit) npm http fetch GET 200 https://registry.npmjs.org/cli-truncate 19ms (cache hit) npm http fetch GET 200 https://registry.npmjs.org/has-flag 5ms (cache hit) npm http fetch GET 200 https://registry.npmjs.org/is-unicode-supported 14ms (cache hit) npm http fetch GET 200 https://registry.npmjs.org/buffer-crc32 4ms (cache hit) npm http fetch GET 200 https://registry.npmjs.org/fd-slicer 6ms (cache hit) npm http fetch GET 200 https://registry.npmjs.org/throttleit 17ms (cache hit) npm http fetch GET 200 https://registry.npmjs.org/delayed-stream 4ms (cache hit) npm http fetch GET 200 https://registry.npmjs.org/jsprim 4ms (cache hit) npm http fetch GET 200 https://registry.npmjs.org/sshpk 4ms (cache hit) npm http fetch GET 200 https://registry.npmjs.org/asynckit 7ms (cache hit) npm http fetch GET 200 https://registry.npmjs.org/mime-db 7ms (cache hit) npm http fetch GET 200 https://registry.npmjs.org/side-channel 8ms (cache hit) npm http fetch GET 200 https://registry.npmjs.org/assert-plus 9ms (cache hit) npm http fetch GET 200 https://registry.npmjs.org/punycode 6ms (cache hit) npm http fetch GET 200 https://registry.npmjs.org/psl 8ms (cache hit) npm http fetch GET 200 https://registry.npmjs.org/url-parse 8ms (cache hit) npm http fetch GET 200 https://registry.npmjs.org/color-convert 3ms (cache hit) npm http fetch GET 200 https://registry.npmjs.org/color-name 1ms (cache hit) npm http fetch GET 200 https://registry.npmjs.org/emoji-regex 1ms (cache hit) npm http fetch GET 200 https://registry.npmjs.org/is-fullwidth-code-point 2ms (cache hit) npm http fetch GET 200 https://registry.npmjs.org/ansi-regex 2ms (cache hit) npm http fetch GET 200 https://registry.npmjs.org/which 3ms (cache hit) npm http fetch GET 200 https://registry.npmjs.org/shebang-command 6ms (cache hit) npm http fetch GET 200 https://registry.npmjs.org/path-key 5ms (cache hit) npm http fetch GET 200 https://registry.npmjs.org/mimic-fn 6ms (cache hit) npm http fetch GET 200 https://registry.npmjs.org/path-key 8ms (cache hit) npm http fetch GET 200 https://registry.npmjs.org/pump 8ms (cache hit) npm http fetch GET 200 https://registry.npmjs.org/isexe 2ms (cache hit) npm http fetch GET 200 https://registry.npmjs.org/shebang-regex 2ms (cache hit) npm http fetch GET 200 https://registry.npmjs.org/@types%2fnode 15ms (cache hit) npm http fetch GET 200 https://registry.npmjs.org/undici-types 9ms (cache hit) npm http fetch GET 200 https://registry.npmjs.org/end-of-stream 2ms (cache hit) npm http fetch GET 200 https://registry.npmjs.org/once 2ms (cache hit) npm http fetch GET 200 https://registry.npmjs.org/verror 3ms (cache hit) npm http fetch GET 200 https://registry.npmjs.org/extsprintf 4ms (cache hit) npm http fetch GET 200 https://registry.npmjs.org/asn1 5ms (cache hit) npm http fetch GET 200 https://registry.npmjs.org/getpass 6ms (cache hit) npm http fetch GET 200 https://registry.npmjs.org/safer-buffer 6ms (cache hit) npm http fetch GET 200 https://registry.npmjs.org/json-schema 7ms (cache hit) npm http fetch GET 200 https://registry.npmjs.org/dashdash 7ms (cache hit) npm http fetch GET 200 https://registry.npmjs.org/jsbn 5ms (cache hit) npm http fetch GET 200 https://registry.npmjs.org/bcrypt-pbkdf 4ms (cache hit) npm http fetch GET 200 https://registry.npmjs.org/ecc-jsbn 4ms (cache hit) npm http fetch GET 200 https://registry.npmjs.org/tweetnacl 6ms (cache hit) npm http fetch GET 200 https://registry.npmjs.org/ini 1ms (cache hit) npm http fetch GET 200 https://registry.npmjs.org/core-util-is 1ms (cache hit) npm http fetch GET 200 https://registry.npmjs.org/slice-ansi 3ms (cache hit) npm http fetch GET 200 https://registry.npmjs.org/ansi-escapes 3ms (cache hit) npm http fetch GET 200 https://registry.npmjs.org/slice-ansi 4ms (cache hit) npm http fetch GET 200 https://registry.npmjs.org/tslib 5ms (cache hit) npm http fetch GET 200 https://registry.npmjs.org/aggregate-error 5ms (cache hit) npm http fetch GET 200 https://registry.npmjs.org/astral-regex 1ms (cache hit) npm http fetch GET 200 https://registry.npmjs.org/type-fest 3ms (cache hit) npm http fetch GET 200 https://registry.npmjs.org/clean-stack 1ms (cache hit) npm http fetch GET 200 https://registry.npmjs.org/indent-string 2ms (cache hit) npm http fetch GET 200 https://registry.npmjs.org/wrappy 1ms (cache hit) npm http fetch GET 200 https://registry.npmjs.org/es-errors 3ms (cache hit) npm http fetch GET 200 https://registry.npmjs.org/object-inspect 2ms (cache hit) npm http fetch GET 200 https://registry.npmjs.org/get-intrinsic 3ms (cache hit) npm http fetch GET 200 https://registry.npmjs.org/call-bind 5ms (cache hit) npm http fetch GET 200 https://registry.npmjs.org/has-symbols 2ms (cache hit) npm http fetch GET 200 https://registry.npmjs.org/es-define-property 4ms (cache hit) npm http fetch GET 200 https://registry.npmjs.org/set-function-length 3ms (cache hit) npm http fetch GET 200 https://registry.npmjs.org/hasown 4ms (cache hit) npm http fetch GET 200 https://registry.npmjs.org/function-bind 5ms (cache hit) npm http fetch GET 200 https://registry.npmjs.org/has-proto 5ms (cache hit) npm http fetch GET 200 https://registry.npmjs.org/define-data-property 2ms (cache hit) npm http fetch GET 200 https://registry.npmjs.org/has-property-descriptors 3ms (cache hit) npm http fetch GET 200 https://registry.npmjs.org/gopd 3ms (cache hit) npm http fetch GET 200 https://registry.npmjs.org/querystringify 2ms (cache hit) npm http fetch GET 200 https://registry.npmjs.org/requires-port 3ms (cache hit) npm http fetch GET 200 https://registry.npmjs.org/pend 1ms (cache hit) npm http fetch POST 200 https://registry.npmjs.org/-/npm/v1/security/advisories/bulk 498ms npm info run [email protected] postinstall node_modules/cypress node index.js --exec install npm info run [email protected] postinstall { code: 1, signal: null } npm verb stack Error: command failed npm verb stack at ChildProcess.<anonymous> (/snap/node/8530/lib/node_modules/npm/node_modules/@npmcli/promise-spawn/lib/index.js:53:27) npm verb stack at ChildProcess.emit (node:events:519:28) npm verb stack at maybeClose (node:internal/child_process:1105:16) npm verb stack at ChildProcess._handle.onexit (node:internal/child_process:305:5) npm verb pkgid [email protected] npm verb cwd /media/DataDrive/cypres-test npm verb Linux 6.8.0-41-generic npm verb node v21.7.3 npm verb npm v10.5.0 npm ERR! code 1 npm ERR! path /media/DataDrive/cypres-test/node_modules/cypress npm ERR! command failed npm ERR! command sh -c node index.js --exec install npm verb exit 1 npm verb unfinished npm timer reify 1725275085913 npm verb unfinished npm timer reify:build 1725275087021 npm verb unfinished npm timer build 1725275087022 npm verb unfinished npm timer build:deps 1725275087022 npm verb unfinished npm timer build:run:postinstall 1725275087027 npm verb unfinished npm timer build:run:postinstall:node_modules/cypress 1725275087027 npm verb code 1 npm ERR! A complete log of this run can be found in: ***
any
21.7.3
npm
10.5.0
Linux
24.04
No response
The text was updated successfully, but these errors were encountered:
@Fedik
21.x
18.x
22.x
snap
npm install cypress --save-dev --foreground-scripts
If you want to avoid the snap problems, then use a different package manager. There is a list on https://nodejs.org/en/download/package-manager/all. For Ubuntu n is often used.
Sorry, something went wrong.
Yeah, it is snap, I suspected something with that. npm install cypress --save-dev --foreground-scripts works fine.
Thank you!
Updating node to 22 also helps snap refresh node --channel 22/stable
snap refresh node --channel 22/stable
upd: hm, no
No branches or pull requests
Current behavior
On Ubuntu 24.04, Cypress installation fails.
Create
package.json
, withThen:
npm install --verbose
Result:
Debug logs
Cypress Version
any
Node version
21.7.3
Package Manager
npm
Package Manager Version
10.5.0
Operating system
Linux
Operating System Version
24.04
Other
No response
The text was updated successfully, but these errors were encountered: