question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Issue with Cypress 3.0.1 on CircleCI 2.0

See original GitHub issue

Is this a Feature or Bug?

Bug

Current behavior:

Caching doesn’t work as intended in CircleCI. Loads fine on the first build but the corresponding builds fail.

Installation on CircleCI

#!/bin/bash -eo pipefail
npm install
npm info it worked if it ends with ok
npm info using npm@3.10.10
npm info using node@v6.11.1
npm info attempt registry request try #1 at 9:54:07 AM
npm http request GET https://registry.npmjs.org/cypress
npm http 200 https://registry.npmjs.org/cypress
npm info retry fetch attempt 1 at 9:54:07 AM
npm info attempt registry request try #1 at 9:54:07 AM
npm http fetch GET https://registry.npmjs.org/cypress/-/cypress-3.0.1.tgz
npm http fetch 200 https://registry.npmjs.org/cypress/-/cypress-3.0.1.tgz
npm info attempt registry request try #1 at 9:54:07 AM
npm http request GET https://registry.npmjs.org/@cypress%2flistr-verbose-renderer
npm info attempt registry request try #1 at 9:54:07 AM
npm http request GET https://registry.npmjs.org/@cypress%2fxvfb
npm info attempt registry request try #1 at 9:54:07 AM
npm http request GET https://registry.npmjs.org/@types%2fblob-util
npm info attempt registry request try #1 at 9:54:07 AM
npm http request GET https://registry.npmjs.org/@types%2fbluebird
npm info attempt registry request try #1 at 9:54:07 AM
npm http request GET https://registry.npmjs.org/@types%2fchai
npm info attempt registry request try #1 at 9:54:07 AM
npm http request GET https://registry.npmjs.org/@types%2fchai-jquery
npm info attempt registry request try #1 at 9:54:07 AM
npm http request GET https://registry.npmjs.org/@types%2fjquery
npm info attempt registry request try #1 at 9:54:07 AM
npm http request GET https://registry.npmjs.org/@types%2flodash
npm info attempt registry request try #1 at 9:54:07 AM
npm http request GET https://registry.npmjs.org/@types%2fminimatch
npm info attempt registry request try #1 at 9:54:07 AM
npm http request GET https://registry.npmjs.org/@types%2fmocha
npm info attempt registry request try #1 at 9:54:07 AM
npm http request GET https://registry.npmjs.org/@types%2fsinon
npm info attempt registry request try #1 at 9:54:07 AM
npm http request GET https://registry.npmjs.org/@types%2fsinon-chai
npm info attempt registry request try #1 at 9:54:07 AM
npm http request GET https://registry.npmjs.org/bluebird
npm info attempt registry request try #1 at 9:54:07 AM
npm http request GET https://registry.npmjs.org/cachedir
npm info attempt registry request try #1 at 9:54:07 AM
npm http request GET https://registry.npmjs.org/commander
npm info attempt registry request try #1 at 9:54:07 AM
npm http request GET https://registry.npmjs.org/common-tags
npm info attempt registry request try #1 at 9:54:07 AM
npm http request GET https://registry.npmjs.org/executable
npm info attempt registry request try #1 at 9:54:07 AM
npm http request GET https://registry.npmjs.org/extract-zip
npm info attempt registry request try #1 at 9:54:07 AM
npm http request GET https://registry.npmjs.org/fs-extra
npm info attempt registry request try #1 at 9:54:07 AM
npm http request GET https://registry.npmjs.org/getos
npm info attempt registry request try #1 at 9:54:07 AM
npm http request GET https://registry.npmjs.org/is-ci
npm info attempt registry request try #1 at 9:54:07 AM
npm http request GET https://registry.npmjs.org/is-installed-globally
npm info attempt registry request try #1 at 9:54:07 AM
npm http request GET https://registry.npmjs.org/lodash
npm info attempt registry request try #1 at 9:54:07 AM
npm http request GET https://registry.npmjs.org/progress
npm info attempt registry request try #1 at 9:54:07 AM
npm http request GET https://registry.npmjs.org/request
npm info attempt registry request try #1 at 9:54:07 AM
npm http request GET https://registry.npmjs.org/request-progress
npm info attempt registry request try #1 at 9:54:07 AM
npm http request GET https://registry.npmjs.org/supports-color
npm info attempt registry request try #1 at 9:54:07 AM
npm http request GET https://registry.npmjs.org/tmp
npm info attempt registry request try #1 at 9:54:07 AM
npm http request GET https://registry.npmjs.org/url
npm info attempt registry request try #1 at 9:54:07 AM
npm http request GET https://registry.npmjs.org/yauzl
npm http 200 https://registry.npmjs.org/is-installed-globally
npm http 200 https://registry.npmjs.org/extract-zip
npm http 200 https://registry.npmjs.org/is-ci
npm http 200 https://registry.npmjs.org/supports-color
npm http 200 https://registry.npmjs.org/request-progress
npm http 200 https://registry.npmjs.org/@types%2fminimatch
npm http 200 https://registry.npmjs.org/@types%2fsinon
npm http 200 https://registry.npmjs.org/@types%2fbluebird
npm http 200 https://registry.npmjs.org/@types%2fblob-util
npm http 200 https://registry.npmjs.org/url
npm http 200 https://registry.npmjs.org/@types%2fsinon-chai
npm http 200 https://registry.npmjs.org/progress
npm http 200 https://registry.npmjs.org/@types%2fchai-jquery
npm http 200 https://registry.npmjs.org/cachedir
npm http 200 https://registry.npmjs.org/commander
npm http 200 https://registry.npmjs.org/tmp
npm http 200 https://registry.npmjs.org/executable
npm http 200 https://registry.npmjs.org/common-tags
npm http 200 https://registry.npmjs.org/fs-extra
npm http 200 https://registry.npmjs.org/@types%2fjquery
npm http 200 https://registry.npmjs.org/@cypress%2flistr-verbose-renderer
npm http 200 https://registry.npmjs.org/lodash
npm http 200 https://registry.npmjs.org/request
npm http 200 https://registry.npmjs.org/@cypress%2fxvfb
npm http 200 https://registry.npmjs.org/yauzl
npm info retry fetch attempt 1 at 9:54:07 AM
npm info attempt registry request try #1 at 9:54:07 AM
npm http fetch GET https://registry.npmjs.org/is-installed-globally/-/is-installed-globally-0.1.0.tgz
npm info retry fetch attempt 1 at 9:54:07 AM
npm info attempt registry request try #1 at 9:54:07 AM
npm http fetch GET https://registry.npmjs.org/extract-zip/-/extract-zip-1.6.6.tgz
npm info retry fetch attempt 1 at 9:54:07 AM
npm info attempt registry request try #1 at 9:54:07 AM
npm http fetch GET https://registry.npmjs.org/is-ci/-/is-ci-1.0.10.tgz
npm info retry fetch attempt 1 at 9:54:07 AM
npm info attempt registry request try #1 at 9:54:07 AM
npm http fetch GET https://registry.npmjs.org/supports-color/-/supports-color-5.1.0.tgz
npm info retry fetch attempt 1 at 9:54:08 AM
npm info attempt registry request try #1 at 9:54:08 AM
npm http fetch GET https://registry.npmjs.org/request-progress/-/request-progress-0.3.1.tgz
npm http fetch 200 https://registry.npmjs.org/is-installed-globally/-/is-installed-globally-0.1.0.tgz
npm info retry fetch attempt 1 at 9:54:08 AM
npm info attempt registry request try #1 at 9:54:08 AM
npm http fetch GET https://registry.npmjs.org/@types/blob-util/-/blob-util-1.3.3.tgz
npm info retry fetch attempt 1 at 9:54:08 AM
npm info attempt registry request try #1 at 9:54:08 AM
npm http fetch GET https://registry.npmjs.org/@types/bluebird/-/bluebird-3.5.18.tgz
npm info retry fetch attempt 1 at 9:54:08 AM
npm info attempt registry request try #1 at 9:54:08 AM
npm http fetch GET https://registry.npmjs.org/url/-/url-0.11.0.tgz
npm http fetch 200 https://registry.npmjs.org/extract-zip/-/extract-zip-1.6.6.tgz
npm http fetch 200 https://registry.npmjs.org/is-ci/-/is-ci-1.0.10.tgz
npm http 200 https://registry.npmjs.org/@types%2fchai
npm info retry fetch attempt 1 at 9:54:08 AM
npm info attempt registry request try #1 at 9:54:08 AM
npm http fetch GET https://registry.npmjs.org/@types/minimatch/-/minimatch-3.0.1.tgz
npm info retry fetch attempt 1 at 9:54:08 AM
npm info attempt registry request try #1 at 9:54:08 AM
npm http fetch GET https://registry.npmjs.org/@types/sinon-chai/-/sinon-chai-2.7.29.tgz
npm info retry fetch attempt 1 at 9:54:08 AM
npm info attempt registry request try #1 at 9:54:08 AM
npm http fetch GET https://registry.npmjs.org/progress/-/progress-1.1.8.tgz
npm info retry fetch attempt 1 at 9:54:08 AM
npm info attempt registry request try #1 at 9:54:08 AM
npm http fetch GET https://registry.npmjs.org/@types/chai-jquery/-/chai-jquery-1.1.35.tgz
npm info retry fetch attempt 1 at 9:54:08 AM
npm info attempt registry request try #1 at 9:54:08 AM
npm http fetch GET https://registry.npmjs.org/cachedir/-/cachedir-1.2.0.tgz
npm info retry fetch attempt 1 at 9:54:08 AM
npm info attempt registry request try #1 at 9:54:08 AM
npm http fetch GET https://registry.npmjs.org/commander/-/commander-2.11.0.tgz
npm http fetch 200 https://registry.npmjs.org/supports-color/-/supports-color-5.1.0.tgz
npm info retry fetch attempt 1 at 9:54:08 AM
npm info attempt registry request try #1 at 9:54:08 AM
npm http fetch GET https://registry.npmjs.org/tmp/-/tmp-0.0.31.tgz
npm info retry fetch attempt 1 at 9:54:08 AM
npm info attempt registry request try #1 at 9:54:08 AM
npm http fetch GET https://registry.npmjs.org/@types/sinon/-/sinon-4.0.0.tgz
npm http fetch 200 https://registry.npmjs.org/@types/bluebird/-/bluebird-3.5.18.tgz
npm http fetch 200 https://registry.npmjs.org/request-progress/-/request-progress-0.3.1.tgz
npm http fetch 200 https://registry.npmjs.org/commander/-/commander-2.11.0.tgz
npm http fetch 200 https://registry.npmjs.org/@types/sinon-chai/-/sinon-chai-2.7.29.tgz
npm http fetch 200 https://registry.npmjs.org/cachedir/-/cachedir-1.2.0.tgz
npm http fetch 200 https://registry.npmjs.org/progress/-/progress-1.1.8.tgz
npm http fetch 200 https://registry.npmjs.org/@types/chai-jquery/-/chai-jquery-1.1.35.tgz
npm http fetch 200 https://registry.npmjs.org/@types/blob-util/-/blob-util-1.3.3.tgz
npm http 200 https://registry.npmjs.org/bluebird
npm http fetch 200 https://registry.npmjs.org/url/-/url-0.11.0.tgz
npm http fetch 200 https://registry.npmjs.org/@types/sinon/-/sinon-4.0.0.tgz
npm http fetch 200 https://registry.npmjs.org/@types/minimatch/-/minimatch-3.0.1.tgz
npm info retry fetch attempt 1 at 9:54:08 AM
npm info attempt registry request try #1 at 9:54:08 AM
npm http fetch GET https://registry.npmjs.org/executable/-/executable-4.1.1.tgz
npm http fetch 200 https://registry.npmjs.org/tmp/-/tmp-0.0.31.tgz
npm info retry fetch attempt 1 at 9:54:08 AM
npm info attempt registry request try #1 at 9:54:08 AM
npm http fetch GET https://registry.npmjs.org/common-tags/-/common-tags-1.4.0.tgz
npm info retry fetch attempt 1 at 9:54:08 AM
npm info attempt registry request try #1 at 9:54:08 AM
npm http fetch GET https://registry.npmjs.org/fs-extra/-/fs-extra-4.0.1.tgz
npm info retry fetch attempt 1 at 9:54:08 AM
npm info attempt registry request try #1 at 9:54:08 AM
npm http fetch GET https://registry.npmjs.org/@types/jquery/-/jquery-3.2.16.tgz
npm http fetch 200 https://registry.npmjs.org/common-tags/-/common-tags-1.4.0.tgz
npm http fetch 200 https://registry.npmjs.org/executable/-/executable-4.1.1.tgz
npm http fetch 200 https://registry.npmjs.org/fs-extra/-/fs-extra-4.0.1.tgz
npm info retry fetch attempt 1 at 9:54:08 AM
npm info attempt registry request try #1 at 9:54:08 AM
npm http fetch GET https://registry.npmjs.org/lodash/-/lodash-4.17.4.tgz
npm http fetch 200 https://registry.npmjs.org/@types/jquery/-/jquery-3.2.16.tgz
npm info retry fetch attempt 1 at 9:54:08 AM
npm info attempt registry request try #1 at 9:54:08 AM
npm http fetch GET https://registry.npmjs.org/@cypress/listr-verbose-renderer/-/listr-verbose-renderer-0.4.1.tgz
npm http fetch 200 https://registry.npmjs.org/lodash/-/lodash-4.17.4.tgz
npm info retry fetch attempt 1 at 9:54:08 AM
npm info attempt registry request try #1 at 9:54:08 AM
npm http fetch GET https://registry.npmjs.org/request/-/request-2.81.0.tgz
npm info retry fetch attempt 1 at 9:54:08 AM
npm info attempt registry request try #1 at 9:54:08 AM
npm http fetch GET https://registry.npmjs.org/@cypress/xvfb/-/xvfb-1.2.3.tgz
npm info retry fetch attempt 1 at 9:54:08 AM
npm info attempt registry request try #1 at 9:54:08 AM
npm http fetch GET https://registry.npmjs.org/yauzl/-/yauzl-2.8.0.tgz
npm http fetch 200 https://registry.npmjs.org/request/-/request-2.81.0.tgz
npm info retry fetch attempt 1 at 9:54:08 AM
npm info attempt registry request try #1 at 9:54:08 AM
npm http fetch GET https://registry.npmjs.org/@types/chai/-/chai-4.0.8.tgz
npm http fetch 200 https://registry.npmjs.org/yauzl/-/yauzl-2.8.0.tgz
npm http 200 https://registry.npmjs.org/@types%2flodash
npm http 200 https://registry.npmjs.org/getos
npm http fetch 200 https://registry.npmjs.org/@types/chai/-/chai-4.0.8.tgz
npm info retry fetch attempt 1 at 9:54:08 AM
npm info attempt registry request try #1 at 9:54:08 AM
npm http fetch GET https://registry.npmjs.org/bluebird/-/bluebird-3.5.0.tgz
npm http fetch 200 https://registry.npmjs.org/bluebird/-/bluebird-3.5.0.tgz
npm info retry fetch attempt 1 at 9:54:08 AM
npm info attempt registry request try #1 at 9:54:08 AM
npm http fetch GET https://registry.npmjs.org/@types/lodash/-/lodash-4.14.87.tgz
npm info retry fetch attempt 1 at 9:54:08 AM
npm info attempt registry request try #1 at 9:54:08 AM
npm http fetch GET https://registry.npmjs.org/getos/-/getos-2.8.4.tgz
npm http fetch 200 https://registry.npmjs.org/getos/-/getos-2.8.4.tgz
npm http fetch 200 https://registry.npmjs.org/@types/lodash/-/lodash-4.14.87.tgz
npm http fetch 200 https://registry.npmjs.org/@cypress/listr-verbose-renderer/-/listr-verbose-renderer-0.4.1.tgz
npm http fetch 200 https://registry.npmjs.org/@cypress/xvfb/-/xvfb-1.2.3.tgz
npm http 200 https://registry.npmjs.org/@types%2fmocha
npm info retry fetch attempt 1 at 9:54:08 AM
npm info attempt registry request try #1 at 9:54:08 AM
npm http fetch GET https://registry.npmjs.org/@types/mocha/-/mocha-2.2.44.tgz
npm http fetch 200 https://registry.npmjs.org/@types/mocha/-/mocha-2.2.44.tgz
npm info attempt registry request try #1 at 9:54:08 AM
npm http request GET https://registry.npmjs.org/chalk
npm info attempt registry request try #1 at 9:54:08 AM
npm http request GET https://registry.npmjs.org/cli-cursor
npm info attempt registry request try #1 at 9:54:08 AM
npm http request GET https://registry.npmjs.org/figures
npm http 200 https://registry.npmjs.org/chalk
npm info retry fetch attempt 1 at 9:54:08 AM
npm info attempt registry request try #1 at 9:54:08 AM
npm http fetch GET https://registry.npmjs.org/chalk/-/chalk-1.1.3.tgz
npm http 200 https://registry.npmjs.org/cli-cursor
npm http fetch 200 https://registry.npmjs.org/chalk/-/chalk-1.1.3.tgz
npm info retry fetch attempt 1 at 9:54:08 AM
npm info attempt registry request try #1 at 9:54:08 AM
npm http fetch GET https://registry.npmjs.org/cli-cursor/-/cli-cursor-1.0.2.tgz
npm http fetch 200 https://registry.npmjs.org/cli-cursor/-/cli-cursor-1.0.2.tgz
npm http 200 https://registry.npmjs.org/figures
npm info retry fetch attempt 1 at 9:54:10 AM
npm info attempt registry request try #1 at 9:54:10 AM
npm http fetch GET https://registry.npmjs.org/figures/-/figures-1.7.0.tgz
npm http fetch 200 https://registry.npmjs.org/figures/-/figures-1.7.0.tgz
npm info attempt registry request try #1 at 9:54:10 AM
npm http request GET https://registry.npmjs.org/ansi-styles
npm http 200 https://registry.npmjs.org/ansi-styles
npm info retry fetch attempt 1 at 9:54:10 AM
npm info attempt registry request try #1 at 9:54:10 AM
npm http fetch GET https://registry.npmjs.org/ansi-styles/-/ansi-styles-2.2.1.tgz
npm http fetch 200 https://registry.npmjs.org/ansi-styles/-/ansi-styles-2.2.1.tgz
npm info attempt registry request try #1 at 9:54:10 AM
npm http request GET https://registry.npmjs.org/restore-cursor
npm http 200 https://registry.npmjs.org/restore-cursor
npm info retry fetch attempt 1 at 9:54:10 AM
npm info attempt registry request try #1 at 9:54:10 AM
npm http fetch GET https://registry.npmjs.org/restore-cursor/-/restore-cursor-1.0.1.tgz
npm http fetch 200 https://registry.npmjs.org/restore-cursor/-/restore-cursor-1.0.1.tgz
npm info attempt registry request try #1 at 9:54:10 AM
npm http request GET https://registry.npmjs.org/onetime
npm http 200 https://registry.npmjs.org/onetime
npm info retry fetch attempt 1 at 9:54:10 AM
npm info attempt registry request try #1 at 9:54:10 AM
npm http fetch GET https://registry.npmjs.org/onetime/-/onetime-1.1.0.tgz
npm http fetch 200 https://registry.npmjs.org/onetime/-/onetime-1.1.0.tgz
npm info attempt registry request try #1 at 9:54:10 AM
npm http request GET https://registry.npmjs.org/lodash.once
npm http 200 https://registry.npmjs.org/lodash.once
npm info retry fetch attempt 1 at 9:54:10 AM
npm info attempt registry request try #1 at 9:54:10 AM
npm http fetch GET https://registry.npmjs.org/lodash.once/-/lodash.once-4.1.1.tgz
npm http fetch 200 https://registry.npmjs.org/lodash.once/-/lodash.once-4.1.1.tgz
npm info attempt registry request try #1 at 9:54:10 AM
npm http request GET https://registry.npmjs.org/concat-stream
npm info attempt registry request try #1 at 9:54:10 AM
npm http request GET https://registry.npmjs.org/debug
npm info attempt registry request try #1 at 9:54:10 AM
npm http request GET https://registry.npmjs.org/mkdirp
npm info retry fetch attempt 1 at 9:54:10 AM
npm info attempt registry request try #1 at 9:54:10 AM
npm http fetch GET https://registry.npmjs.org/yauzl/-/yauzl-2.4.1.tgz
npm http 200 https://registry.npmjs.org/concat-stream
npm http 200 https://registry.npmjs.org/mkdirp
npm http fetch 200 https://registry.npmjs.org/yauzl/-/yauzl-2.4.1.tgz
npm info retry fetch attempt 1 at 9:54:10 AM
npm info attempt registry request try #1 at 9:54:10 AM
npm http fetch GET https://registry.npmjs.org/concat-stream/-/concat-stream-1.6.0.tgz
npm http 200 https://registry.npmjs.org/debug
npm info retry fetch attempt 1 at 9:54:10 AM
npm info attempt registry request try #1 at 9:54:10 AM
npm http fetch GET https://registry.npmjs.org/mkdirp/-/mkdirp-0.5.0.tgz
npm http fetch 200 https://registry.npmjs.org/concat-stream/-/concat-stream-1.6.0.tgz
npm info retry fetch attempt 1 at 9:54:10 AM
npm info attempt registry request try #1 at 9:54:10 AM
npm http fetch GET https://registry.npmjs.org/debug/-/debug-2.6.9.tgz
npm http fetch 200 https://registry.npmjs.org/mkdirp/-/mkdirp-0.5.0.tgz
npm http fetch 200 https://registry.npmjs.org/debug/-/debug-2.6.9.tgz
npm info attempt registry request try #1 at 9:54:10 AM
npm http request GET https://registry.npmjs.org/minimist
npm http 200 https://registry.npmjs.org/minimist
npm info retry fetch attempt 1 at 9:54:10 AM
npm info attempt registry request try #1 at 9:54:10 AM
npm http fetch GET https://registry.npmjs.org/minimist/-/minimist-0.0.8.tgz
npm http fetch 200 https://registry.npmjs.org/minimist/-/minimist-0.0.8.tgz
npm info attempt registry request try #1 at 9:54:10 AM
npm http request GET https://registry.npmjs.org/fd-slicer
npm http 200 https://registry.npmjs.org/fd-slicer
npm info retry fetch attempt 1 at 9:54:10 AM
npm info attempt registry request try #1 at 9:54:10 AM
npm http fetch GET https://registry.npmjs.org/fd-slicer/-/fd-slicer-1.0.1.tgz
npm http fetch 200 https://registry.npmjs.org/fd-slicer/-/fd-slicer-1.0.1.tgz
npm info attempt registry request try #1 at 9:54:10 AM
npm http request GET https://registry.npmjs.org/pend
npm http 200 https://registry.npmjs.org/pend
npm info retry fetch attempt 1 at 9:54:10 AM
npm info attempt registry request try #1 at 9:54:10 AM
npm http fetch GET https://registry.npmjs.org/pend/-/pend-1.2.0.tgz
npm http fetch 200 https://registry.npmjs.org/pend/-/pend-1.2.0.tgz
npm info attempt registry request try #1 at 9:54:10 AM
npm http request GET https://registry.npmjs.org/jsonfile
npm info attempt registry request try #1 at 9:54:10 AM
npm http request GET https://registry.npmjs.org/universalify
npm http 200 https://registry.npmjs.org/jsonfile
npm http 200 https://registry.npmjs.org/universalify
npm info retry fetch attempt 1 at 9:54:10 AM
npm info attempt registry request try #1 at 9:54:10 AM
npm http fetch GET https://registry.npmjs.org/jsonfile/-/jsonfile-3.0.1.tgz
npm info retry fetch attempt 1 at 9:54:10 AM
npm info attempt registry request try #1 at 9:54:10 AM
npm http fetch GET https://registry.npmjs.org/universalify/-/universalify-0.1.1.tgz
npm http fetch 200 https://registry.npmjs.org/jsonfile/-/jsonfile-3.0.1.tgz
npm http fetch 200 https://registry.npmjs.org/universalify/-/universalify-0.1.1.tgz
npm info attempt registry request try #1 at 9:54:10 AM
npm http request GET https://registry.npmjs.org/async
npm http 200 https://registry.npmjs.org/async
npm info retry fetch attempt 1 at 9:54:10 AM
npm info attempt registry request try #1 at 9:54:10 AM
npm http fetch GET https://registry.npmjs.org/async/-/async-2.1.4.tgz
npm http fetch 200 https://registry.npmjs.org/async/-/async-2.1.4.tgz
npm info attempt registry request try #1 at 9:54:11 AM
npm http request GET https://registry.npmjs.org/global-dirs
npm http 200 https://registry.npmjs.org/global-dirs
npm info retry fetch attempt 1 at 9:54:11 AM
npm info attempt registry request try #1 at 9:54:11 AM
npm http fetch GET https://registry.npmjs.org/global-dirs/-/global-dirs-0.1.1.tgz
npm http fetch 200 https://registry.npmjs.org/global-dirs/-/global-dirs-0.1.1.tgz
npm info attempt registry request try #1 at 9:54:11 AM
npm http request GET https://registry.npmjs.org/aws-sign2
npm info attempt registry request try #1 at 9:54:11 AM
npm http request GET https://registry.npmjs.org/form-data
npm info attempt registry request try #1 at 9:54:11 AM
npm http request GET https://registry.npmjs.org/har-validator
npm info attempt registry request try #1 at 9:54:11 AM
npm http request GET https://registry.npmjs.org/hawk
npm info attempt registry request try #1 at 9:54:11 AM
npm http request GET https://registry.npmjs.org/http-signature
npm info attempt registry request try #1 at 9:54:11 AM
npm http request GET https://registry.npmjs.org/performance-now
npm info attempt registry request try #1 at 9:54:11 AM
npm http request GET https://registry.npmjs.org/qs
npm http 200 https://registry.npmjs.org/har-validator
npm http 200 https://registry.npmjs.org/aws-sign2
npm http 200 https://registry.npmjs.org/performance-now
npm http 200 https://registry.npmjs.org/hawk
npm http 200 https://registry.npmjs.org/qs
npm http 200 https://registry.npmjs.org/http-signature
npm info retry fetch attempt 1 at 9:54:11 AM
npm info attempt registry request try #1 at 9:54:11 AM
npm http fetch GET https://registry.npmjs.org/har-validator/-/har-validator-4.2.1.tgz
npm http 200 https://registry.npmjs.org/form-data
npm info retry fetch attempt 1 at 9:54:11 AM
npm info attempt registry request try #1 at 9:54:11 AM
npm http fetch GET https://registry.npmjs.org/aws-sign2/-/aws-sign2-0.6.0.tgz
npm info retry fetch attempt 1 at 9:54:11 AM
npm info attempt registry request try #1 at 9:54:11 AM
npm http fetch GET https://registry.npmjs.org/performance-now/-/performance-now-0.2.0.tgz
npm http fetch 200 https://registry.npmjs.org/aws-sign2/-/aws-sign2-0.6.0.tgz
npm http fetch 200 https://registry.npmjs.org/performance-now/-/performance-now-0.2.0.tgz
npm http fetch 200 https://registry.npmjs.org/har-validator/-/har-validator-4.2.1.tgz
npm info retry fetch attempt 1 at 9:54:11 AM
npm info attempt registry request try #1 at 9:54:11 AM
npm http fetch GET https://registry.npmjs.org/hawk/-/hawk-3.1.3.tgz
npm info retry fetch attempt 1 at 9:54:11 AM
npm info attempt registry request try #1 at 9:54:11 AM
npm http fetch GET https://registry.npmjs.org/qs/-/qs-6.4.0.tgz
npm http fetch 200 https://registry.npmjs.org/qs/-/qs-6.4.0.tgz
npm info retry fetch attempt 1 at 9:54:11 AM
npm info attempt registry request try #1 at 9:54:11 AM
npm http fetch GET https://registry.npmjs.org/http-signature/-/http-signature-1.1.1.tgz
npm info retry fetch attempt 1 at 9:54:11 AM
npm info attempt registry request try #1 at 9:54:11 AM
npm http fetch GET https://registry.npmjs.org/form-data/-/form-data-2.1.4.tgz
npm http fetch 200 https://registry.npmjs.org/hawk/-/hawk-3.1.3.tgz
npm http fetch 200 https://registry.npmjs.org/http-signature/-/http-signature-1.1.1.tgz
npm http fetch 200 https://registry.npmjs.org/form-data/-/form-data-2.1.4.tgz
npm info attempt registry request try #1 at 9:54:11 AM
npm http request GET https://registry.npmjs.org/ajv
npm info attempt registry request try #1 at 9:54:11 AM
npm http request GET https://registry.npmjs.org/har-schema
npm http 200 https://registry.npmjs.org/har-schema
npm info retry fetch attempt 1 at 9:54:11 AM
npm info attempt registry request try #1 at 9:54:11 AM
npm http fetch GET https://registry.npmjs.org/har-schema/-/har-schema-1.0.5.tgz
npm http 200 https://registry.npmjs.org/ajv
npm http fetch 200 https://registry.npmjs.org/har-schema/-/har-schema-1.0.5.tgz
npm info retry fetch attempt 1 at 9:54:11 AM
npm info attempt registry request try #1 at 9:54:11 AM
npm http fetch GET https://registry.npmjs.org/ajv/-/ajv-4.11.8.tgz
npm http fetch 200 https://registry.npmjs.org/ajv/-/ajv-4.11.8.tgz
npm info attempt registry request try #1 at 9:54:11 AM
npm http request GET https://registry.npmjs.org/hoek
npm info attempt registry request try #1 at 9:54:11 AM
npm http request GET https://registry.npmjs.org/boom
npm info attempt registry request try #1 at 9:54:11 AM
npm http request GET https://registry.npmjs.org/cryptiles
npm info attempt registry request try #1 at 9:54:11 AM
npm http request GET https://registry.npmjs.org/sntp
npm http 200 https://registry.npmjs.org/sntp
npm http 200 https://registry.npmjs.org/boom
npm info retry fetch attempt 1 at 9:54:11 AM
npm info attempt registry request try #1 at 9:54:11 AM
npm http fetch GET https://registry.npmjs.org/sntp/-/sntp-1.0.9.tgz
npm info retry fetch attempt 1 at 9:54:11 AM
npm info attempt registry request try #1 at 9:54:11 AM
npm http fetch GET https://registry.npmjs.org/boom/-/boom-2.10.1.tgz
npm http fetch 200 https://registry.npmjs.org/sntp/-/sntp-1.0.9.tgz
npm http fetch 200 https://registry.npmjs.org/boom/-/boom-2.10.1.tgz
npm http 200 https://registry.npmjs.org/hoek
npm info retry fetch attempt 1 at 9:54:12 AM
npm info attempt registry request try #1 at 9:54:12 AM
npm http fetch GET https://registry.npmjs.org/hoek/-/hoek-2.16.3.tgz
npm http fetch 200 https://registry.npmjs.org/hoek/-/hoek-2.16.3.tgz
npm http 200 https://registry.npmjs.org/cryptiles
npm info retry fetch attempt 1 at 9:54:13 AM
npm info attempt registry request try #1 at 9:54:13 AM
npm http fetch GET https://registry.npmjs.org/cryptiles/-/cryptiles-2.0.5.tgz
npm http fetch 200 https://registry.npmjs.org/cryptiles/-/cryptiles-2.0.5.tgz
npm info attempt registry request try #1 at 9:54:13 AM
npm http request GET https://registry.npmjs.org/assert-plus
npm http 200 https://registry.npmjs.org/assert-plus
npm info retry fetch attempt 1 at 9:54:13 AM
npm info attempt registry request try #1 at 9:54:13 AM
npm http fetch GET https://registry.npmjs.org/assert-plus/-/assert-plus-0.2.0.tgz
npm http fetch 200 https://registry.npmjs.org/assert-plus/-/assert-plus-0.2.0.tgz
npm info attempt registry request try #1 at 9:54:13 AM
npm http request GET https://registry.npmjs.org/throttleit
npm http 200 https://registry.npmjs.org/throttleit
npm info retry fetch attempt 1 at 9:54:13 AM
npm info attempt registry request try #1 at 9:54:13 AM
npm http fetch GET https://registry.npmjs.org/throttleit/-/throttleit-0.0.2.tgz
npm http fetch 200 https://registry.npmjs.org/throttleit/-/throttleit-0.0.2.tgz
npm info attempt registry request try #1 at 9:54:13 AM
npm http request GET https://registry.npmjs.org/has-flag
npm http 200 https://registry.npmjs.org/has-flag
npm info retry fetch attempt 1 at 9:54:13 AM
npm info attempt registry request try #1 at 9:54:13 AM
npm http fetch GET https://registry.npmjs.org/has-flag/-/has-flag-2.0.0.tgz
npm http fetch 200 https://registry.npmjs.org/has-flag/-/has-flag-2.0.0.tgz
npm info attempt registry request try #1 at 9:54:13 AM
npm http request GET https://registry.npmjs.org/punycode
npm http 200 https://registry.npmjs.org/punycode
npm info retry fetch attempt 1 at 9:54:13 AM
npm info attempt registry request try #1 at 9:54:13 AM
npm http fetch GET https://registry.npmjs.org/punycode/-/punycode-1.3.2.tgz
npm http fetch 200 https://registry.npmjs.org/punycode/-/punycode-1.3.2.tgz
npm info attempt registry request try #1 at 9:54:13 AM
npm http request GET https://registry.npmjs.org/buffer-crc32
npm http 200 https://registry.npmjs.org/buffer-crc32
npm info retry fetch attempt 1 at 9:54:13 AM
npm info attempt registry request try #1 at 9:54:13 AM
npm http fetch GET https://registry.npmjs.org/buffer-crc32/-/buffer-crc32-0.2.13.tgz
npm http fetch 200 https://registry.npmjs.org/buffer-crc32/-/buffer-crc32-0.2.13.tgz
npm info lifecycle Project-Name@1.0.0~preinstall: Project-Name@1.0.0
npm info lifecycle @cypress/xvfb@1.2.3~preinstall: @cypress/xvfb@1.2.3
npm info lifecycle cachedir@1.2.0~preinstall: cachedir@1.2.0
npm info lifecycle executable@4.1.1~preinstall: executable@4.1.1
npm info lifecycle cypress@3.0.1~preinstall: cypress@3.0.1
npm info lifecycle cypress@2.1.0~preuninstall: cypress@2.1.0
npm info lifecycle cypress@2.1.0~uninstall: cypress@2.1.0
npm info lifecycle cypress@2.1.0~postuninstall: cypress@2.1.0
npm info lifecycle chalk@2.1.0~preuninstall: chalk@2.1.0
npm info lifecycle chalk@2.1.0~uninstall: chalk@2.1.0
npm info lifecycle chalk@2.1.0~postuninstall: chalk@2.1.0
npm info lifecycle supports-color@4.5.0~preuninstall: supports-color@4.5.0
npm info lifecycle supports-color@4.5.0~uninstall: supports-color@4.5.0
npm info lifecycle supports-color@4.5.0~postuninstall: supports-color@4.5.0
npm info lifecycle @cypress/xvfb@1.1.3~preuninstall: @cypress/xvfb@1.1.3
npm info lifecycle @cypress/xvfb@1.1.3~uninstall: @cypress/xvfb@1.1.3
npm info lifecycle @cypress/xvfb@1.1.3~postuninstall: @cypress/xvfb@1.1.3
npm info linkStuff @cypress/xvfb@1.2.3
npm info linkStuff cachedir@1.2.0
npm info linkStuff executable@4.1.1
npm info linkStuff cypress@3.0.1
npm info lifecycle @cypress/xvfb@1.2.3~install: @cypress/xvfb@1.2.3
npm info lifecycle cachedir@1.2.0~install: cachedir@1.2.0
npm info lifecycle executable@4.1.1~install: executable@4.1.1
npm info lifecycle cypress@3.0.1~install: cypress@3.0.1
npm info lifecycle @cypress/xvfb@1.2.3~postinstall: @cypress/xvfb@1.2.3
npm info lifecycle cachedir@1.2.0~postinstall: cachedir@1.2.0
npm info lifecycle executable@4.1.1~postinstall: executable@4.1.1
npm info lifecycle cypress@3.0.1~postinstall: cypress@3.0.1

> cypress@3.0.1 postinstall /root/app/node_modules/cypress
> node index.js --exec install

Installing Cypress (version: 3.0.1)

[09:54:22]  Downloading Cypress     [started]
[09:54:23]  Downloading Cypress     [completed]
[09:54:23]  Unzipping Cypress       [started]
[09:55:22]  Unzipping Cypress       [completed]
[09:55:22]  Finishing Installation  [started]
[09:55:22]  Finishing Installation  [completed]

You can now open Cypress by running: node_modules/.bin/cypress open

https://on.cypress.io/installing-cypress

npm info linkStuff Project-Name@1.0.0
npm info lifecycle Project-Name@1.0.0~install: Project-Name@1.0.0
npm info lifecycle Project-Name@1.0.0~postinstall: Project-Name@1.0.0
npm info lifecycle Project-Name@1.0.0~prepublish: Project-Name@1.0.0
- supports-color@4.5.0 node_modules/cypress/node_modules/chalk/node_modules/supports-color
- chalk@2.1.0 node_modules/cypress/node_modules/chalk
Project-Name@1.0.0 /root/app
`-- cypress@3.0.1 
  +-- @cypress/xvfb@1.2.3 
  +-- cachedir@1.2.0 
  `-- executable@4.1.1 

npm WARN ajv-keywords@3.2.0 requires a peer of ajv@^6.0.0 but none was installed.
npm info ok 

Initial build

#!/bin/bash -eo pipefail
npm run test-junit
npm info it worked if it ends with ok
npm info using npm@3.10.10
npm info using node@v6.11.1
npm info lifecycle Project-Name1.0.0~pretest-junit: Project-Name@1.0.0
npm info lifecycle Project-Name@1.0.0~test-junit: Project-Name@1.0.0

> Project-Name@1.0.0 test-junit /root/app
> cypress run --reporter mocha-junit-reporter --reporter-options 'mochaFile=junit-results/my-test-output.xml'


It looks like this is your first time using Cypress: 3.0.1

[09:55:35]  Verifying Cypress can run /root/.cache/Cypress/3.0.1/Cypress [started]
[09:55:37]  Verifying Cypress can run /root/.cache/Cypress/3.0.1/Cypress [completed]

Next run

#!/bin/bash -eo pipefail
npm run test-junit
npm info it worked if it ends with ok
npm info using npm@3.10.10
npm info using node@v6.11.1
npm info lifecycle Project-Name@1.0.0~pretest-junit: Project-Name@1.0.0
npm info lifecycle Project-Name@1.0.0~test-junit: Project-Name@1.0.0

> Project-Name@1.0.0 test-junit /root/app
> cypress run --reporter mocha-junit-reporter --reporter-options 'mochaFile=junit-results/my-test-output.xml'


No version of Cypress is installed in: /root/.cache/Cypress/3.0.1/Cypress

Please reinstall Cypress by running: cypress install
----------

Cypress executable not found at: /root/.cache/Cypress/3.0.1/Cypress/Cypress
----------

Platform: linux (Debian - 8.9)
Cypress Version: 3.0.1

npm info lifecycle Project-Name@1.0.0~test-junit: Failed to exec test-junit script
npm ERR! Linux 4.4.0-127-generic
npm ERR! argv "/usr/local/bin/node" "/usr/local/bin/npm" "run" "test-junit"
npm ERR! node v6.11.1
npm ERR! npm  v3.10.10
npm ERR! code ELIFECYCLE
npm ERR! Project-Name@1.0.0 test-junit: `cypress run --reporter mocha-junit-reporter --reporter-options 'mochaFile=junit-results/my-test-output.xml'`
npm ERR! Exit status 1
npm ERR! 
npm ERR! Failed at the Project-Name@1.0.0 test-junit script 'cypress run --reporter mocha-junit-reporter --reporter-options 'mochaFile=junit-results/my-test-output.xml''.
npm ERR! Make sure you have the latest version of node.js and npm installed.
npm ERR! If you do, this is most likely a problem with the Project-Name package,
npm ERR! not with npm itself.
npm ERR! Tell the author that this fails on your system:
npm ERR!     cypress run --reporter mocha-junit-reporter --reporter-options 'mochaFile=junit-results/my-test-output.xml'
npm ERR! You can get information on how to open an issue for this project with:
npm ERR!     npm bugs Project-Name
npm ERR! Or if that isn't available, you can get their info via:
npm ERR!     npm owner ls Project-Name
npm ERR! There is likely additional logging output above.

npm ERR! Please include the following file with any support request:
npm ERR!     /root/app/npm-debug.log
Exited with code 1

Desired behavior:

Should use cached modules.

Steps to reproduce:

Setup to use Cypress 3.0.1, then push a build on Cypress first time for installation. Then do a rebuild.

Versions

Cypress 3.0.1, CircleCI 2.0

Issue Analytics

  • State:closed
  • Created 5 years ago
  • Comments:8 (5 by maintainers)

github_iconTop GitHub Comments

4reactions
kucebcommented, Jun 6, 2018

@omidfi this a small problem with caching node_modules. The post-install script that installs the Cypress binary won’t be run since node_modules/cypress exists. To fix this you can flush the cache of the CI build and everything should be solved. This is why we recommend using npm ci, since node_modules will get wiped every build Also:

  • you can omit -{{ checksum ... altogether, since npm and Cypress will manage their own caches. Using a checksum will blow away the caches whenever package.json changes, which will destroy the Cypress cache when you update lodash for example…
1reaction
ojonescommented, May 11, 2020

Our issue came from switching from npm to yarn in circleci. We got this error: The cypress npm package is installed, but the Cypress binary is missing. We expected the binary to be installed here: /home/circleci/.cache/Cypress/3.5.0/Cypress/Cypress

The solution was to persist the cypress/* folder:

- persist_to_workspace:
    root: .
    paths:
      - node_modules/*
      - cypress/*
Read more comments on GitHub >

github_iconTop Results From Across the Web

cypress-io/cypress - CircleCI Developer Hub
Runs all Cypress tests without recording results on the Dashboard. Installs dependencies with "npm ci", caches NPM modules and Cypress binary. 1 ...
Read more >
Changelog - Cypress Documentation
Fixed an issue with Angular Component Testing where urls within SASS/SCSS files were not being correctly resolved which could result in incomplete styling....
Read more >
Faster, easier, end-to-end testing with CircleCI and Cypress
Learn how to set up Cypress on CircleCI to maximize end-to-end testing efficiency.Running a complex tool on a continuous integration (CI) ...
Read more >
No version of Cypress is installed in Ci (TravisCI and CircleCI)
This a small problem with caching node_modules - the post-install script that installs the Cypress binary won't be run since ...
Read more >
Continuous Integration - cypress - w3resource
Using the orb will bring simplicity and static checks of parameters to CircleCI configuration. Example circle.yml v2 config file. version: 2 ''' ...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found