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.

Trying to run Percy icm Cypress

See original GitHub issue

Hi Guys,

I thought lets see if i could make Percy to work icm Cypress on my local machine. I have unfortunately some trouble with setting it up and run a cypress project.

I’m running the following command $ DEBUG=* $(npm bin)/percy exec – cypress run

2019-07-18T14:23:43.845Z @oclif/config reading core plugin C:\Users\Patrick.DESKTOP-Q3EBHKB\node_modules@percy\agent 2019-07-18T14:23:43.846Z @oclif/config loadJSON C:\Users\Patrick.DESKTOP-Q3EBHKB\node_modules@percy\agent\package.json 2019-07-18T14:23:43.848Z @oclif/config loadJSON C:\Users\Patrick.DESKTOP-Q3EBHKB\node_modules@percy\agent\oclif.manifest. json (node:9156) Error Plugin: @percy/agent: files attribute must be specified in C:\Users\Patrick.DESKTOP-Q3EBHKB\node_modules @percy\agent\package.json module: @oclif/config@1.13.2 plugin: @percy/agent root: C:\Users\Patrick.DESKTOP-Q3EBHKB\node_modules@percy\agent See more details with DEBUG=* Error Plugin: @percy/agent: files attribute must be specified in C:\Users\Patrick.DESKTOP-Q3EBHKB\node_modules@percy\agen t\package.json at Plugin.warn (C:\Users\Patrick.DESKTOP-Q3EBHKB\node_modules@oclif\config\lib\plugin.js:174:19) at Plugin.load (C:\Users\Patrick.DESKTOP-Q3EBHKB\node_modules@oclif\config\lib\plugin.js:36:18) module: @oclif/config@1.13.2 plugin: @percy/agent root: C:\Users\Patrick.DESKTOP-Q3EBHKB\node_modules@percy\agent See more details with DEBUG=* 2019-07-18T14:23:43.850Z @oclif/config loadJSON C:\Users\Patrick.DESKTOP-Q3EBHKB\node_modules@percy\agent.oclif.manifest .json 2019-07-18T14:23:43.850Z @oclif/config:@percy/agent using manifest from C:\Users\Patrick.DESKTOP-Q3EBHKB\node_modules@per cy\agent.oclif.manifest.json 2019-07-18T14:23:43.851Z @oclif/config reading user plugins pjson C:\Users\Patrick.DESKTOP-Q3EBHKB\AppData\Local@percy\ag ent\package.json 2019-07-18T14:23:43.851Z @oclif/config loadJSON C:\Users\Patrick.DESKTOP-Q3EBHKB\AppData\Local@percy\agent\package.json 2019-07-18T14:23:43.852Z @oclif/config loading plugins [ ‘@oclif/plugin-help’, ‘@oclif/plugin-not-found’ ] 2019-07-18T14:23:43.854Z @oclif/config loadJSON C:\Users\Patrick.DESKTOP-Q3EBHKB\node_modules@percy\agent\package.json 2019-07-18T14:23:43.854Z @oclif/config loadJSON C:\Users\Patrick.DESKTOP-Q3EBHKB\node_modules@percy\agent\package.json 2019-07-18T14:23:43.855Z @oclif/config loadJSON C:\Users\Patrick.DESKTOP-Q3EBHKB\node_modules@percy\package.json 2019-07-18T14:23:43.855Z @oclif/config loadJSON C:\Users\Patrick.DESKTOP-Q3EBHKB\node_modules@percy\package.json 2019-07-18T14:23:43.855Z @oclif/config loadJSON C:\Users\Patrick.DESKTOP-Q3EBHKB\node_modules\package.json 2019-07-18T14:23:43.855Z @oclif/config loadJSON C:\Users\Patrick.DESKTOP-Q3EBHKB\node_modules\package.json 2019-07-18T14:23:43.855Z @oclif/config reading core plugin C:\Users\Patrick.DESKTOP-Q3EBHKB\node_modules@oclif\plugin-hel p 2019-07-18T14:23:43.855Z @oclif/config loadJSON C:\Users\Patrick.DESKTOP-Q3EBHKB\node_modules@oclif\plugin-help\package.j son 2019-07-18T14:23:43.856Z @oclif/config reading core plugin C:\Users\Patrick.DESKTOP-Q3EBHKB\node_modules@oclif\plugin-not -found 2019-07-18T14:23:43.856Z @oclif/config loadJSON C:\Users\Patrick.DESKTOP-Q3EBHKB\node_modules@oclif\plugin-not-found\pack age.json 2019-07-18T14:23:43.857Z @oclif/config loadJSON C:\Users\Patrick.DESKTOP-Q3EBHKB\node_modules@oclif\plugin-help\oclif.manifest.json (node:9156) Error Plugin: @oclif/plugin-help: files attribute must be specified in C:\Users\Patrick.DESKTOP-Q3EBHKB\node_modules@oclif\plugin-help\package.json module: @oclif/config@1.13.2 plugin: @oclif/plugin-help root: C:\Users\Patrick.DESKTOP-Q3EBHKB\node_modules@oclif\plugin-help See more details with DEBUG=* Error Plugin: @oclif/plugin-help: files attribute must be specified in C:\Users\Patrick.DESKTOP-Q3EBHKB\node_modules@oclif\plugin-help\package.json at Plugin.warn (C:\Users\Patrick.DESKTOP-Q3EBHKB\node_modules@oclif\config\lib\plugin.js:174:19) at Plugin.load (C:\Users\Patrick.DESKTOP-Q3EBHKB\node_modules@oclif\config\lib\plugin.js:36:18) module: @oclif/config@1.13.2 plugin: @oclif/plugin-help root: C:\Users\Patrick.DESKTOP-Q3EBHKB\node_modules@oclif\plugin-help See more details with DEBUG=* 2019-07-18T14:23:43.858Z @oclif/config loadJSON C:\Users\Patrick.DESKTOP-Q3EBHKB\node_modules@oclif\plugin-not-found\oclif.manifest.json (node:9156) Error Plugin: @oclif/plugin-not-found: files attribute must be specified in C:\Users\Patrick.DESKTOP-Q3EBHKB\node_modules@oclif\plugin-not-found\package.json module: @oclif/config@1.13.2 plugin: @oclif/plugin-not-found root: C:\Users\Patrick.DESKTOP-Q3EBHKB\node_modules@oclif\plugin-not-found See more details with DEBUG=* Error Plugin: @oclif/plugin-not-found: files attribute must be specified in C:\Users\Patrick.DESKTOP-Q3EBHKB\node_modules@oclif\plugin-not-found\package.json at Plugin.warn (C:\Users\Patrick.DESKTOP-Q3EBHKB\node_modules@oclif\config\lib\plugin.js:174:19) at Plugin.load (C:\Users\Patrick.DESKTOP-Q3EBHKB\node_modules@oclif\config\lib\plugin.js:36:18) module: @oclif/config@1.13.2 plugin: @oclif/plugin-not-found root: C:\Users\Patrick.DESKTOP-Q3EBHKB\node_modules@oclif\plugin-not-found See more details with DEBUG=* 2019-07-18T14:23:43.858Z @oclif/config:@oclif/plugin-help using manifest from C:\Users\Patrick.DESKTOP-Q3EBHKB\node_modules@oclif\plugin-help\oclif.manifest.json 2019-07-18T14:23:43.859Z @oclif/config loadJSON C:\Users\Patrick.DESKTOP-Q3EBHKB\node_modules@oclif\plugin-not-found.oclif.manifest.json 2019-07-18T14:23:43.859Z @oclif/config:@oclif/plugin-not-found using manifest from C:\Users\Patrick.DESKTOP-Q3EBHKB\node_modules@oclif\plugin-not-found.oclif.manifest.json 2019-07-18T14:23:43.860Z @oclif/config config done 2019-07-18T14:23:43.860Z @oclif/config start init hook 2019-07-18T14:23:43.861Z @oclif/config init hook done 2019-07-18T14:23:43.861Z percy init version: @oclif/command@1.5.15 argv: [ ‘exec’, ‘–’, ‘cypress’, ‘run’ ] 2019-07-18T14:23:43.866Z @oclif/config runCommand exec [ ‘–’, ‘cypress’, ‘run’ ] 2019-07-18T14:23:43.867Z @oclif/config:@percy/agent require C:\Users\Patrick.DESKTOP-Q3EBHKB\node_modules@percy\agent\dist\commands\exec.js 2019-07-18T14:23:44.215Z @oclif/config start prerun hook 2019-07-18T14:23:44.215Z @oclif/config prerun hook done Thu, 18 Jul 2019 14:23:44 GMT express:application set “x-powered-by” to true Thu, 18 Jul 2019 14:23:44 GMT express:application set “etag” to ‘weak’ Thu, 18 Jul 2019 14:23:44 GMT express:application set “etag fn” to [Function: generateETag] Thu, 18 Jul 2019 14:23:44 GMT express:application set “env” to ‘development’ Thu, 18 Jul 2019 14:23:44 GMT express:application set “query parser” to ‘extended’ Thu, 18 Jul 2019 14:23:44 GMT express:application set “query parser fn” to [Function: parseExtendedQueryString] Thu, 18 Jul 2019 14:23:44 GMT express:application set “subdomain offset” to 2 Thu, 18 Jul 2019 14:23:44 GMT express:application set “trust proxy” to false Thu, 18 Jul 2019 14:23:44 GMT express:application set “trust proxy fn” to [Function: trustNone] Thu, 18 Jul 2019 14:23:44 GMT express:application booting in development mode Thu, 18 Jul 2019 14:23:44 GMT express:application set “view” to [Function: View] Thu, 18 Jul 2019 14:23:44 GMT express:application set “views” to ‘C:\Users\Patrick.DESKTOP-Q3EBHKB\test\views’ Thu, 18 Jul 2019 14:23:44 GMT express:application set “jsonp callback name” to ‘callback’ Thu, 18 Jul 2019 14:23:44 GMT express:router use ‘/’ query Thu, 18 Jul 2019 14:23:44 GMT express:router:layer new ‘/’ Thu, 18 Jul 2019 14:23:44 GMT express:router use ‘/’ expressInit Thu, 18 Jul 2019 14:23:44 GMT express:router:layer new ‘/’ Thu, 18 Jul 2019 14:23:44 GMT express:router use ‘/’ corsMiddleware Thu, 18 Jul 2019 14:23:44 GMT express:router:layer new ‘/’ Thu, 18 Jul 2019 14:23:44 GMT express:router use ‘/’ urlencodedParser Thu, 18 Jul 2019 14:23:44 GMT express:router:layer new ‘/’ Thu, 18 Jul 2019 14:23:44 GMT express:router use ‘/’ jsonParser Thu, 18 Jul 2019 14:23:44 GMT express:router:layer new ‘/’ Thu, 18 Jul 2019 14:23:44 GMT express:router use ‘/’ serveStatic Thu, 18 Jul 2019 14:23:44 GMT express:router:layer new ‘/’ Thu, 18 Jul 2019 14:23:44 GMT express:router:route new ‘/percy/snapshot’ Thu, 18 Jul 2019 14:23:44 GMT express:router:layer new ‘/percy/snapshot’ Thu, 18 Jul 2019 14:23:44 GMT express:router:route post ‘/percy/snapshot’ Thu, 18 Jul 2019 14:23:44 GMT express:router:layer new ‘/’ Thu, 18 Jul 2019 14:23:44 GMT express:router:route new ‘/percy/stop’ Thu, 18 Jul 2019 14:23:44 GMT express:router:layer new ‘/percy/stop’ Thu, 18 Jul 2019 14:23:44 GMT express:router:route post ‘/percy/stop’ Thu, 18 Jul 2019 14:23:44 GMT express:router:layer new ‘/’ Thu, 18 Jul 2019 14:23:44 GMT express:router:route new ‘/percy/healthcheck’ Thu, 18 Jul 2019 14:23:44 GMT express:router:layer new ‘/percy/healthcheck’ Thu, 18 Jul 2019 14:23:44 GMT express:router:route get ‘/percy/healthcheck’ Thu, 18 Jul 2019 14:23:44 GMT express:router:layer new ‘/’ 2019-07-18T14:23:44.463Z percy:exec init version: @oclif/command@1.5.15 argv: [ ‘–’, ‘cypress’, ‘run’ ] [percy] created build #14: https://percy.io/projectname/demo/builds/2219046 2019-07-18T14:23:45.012Z puppeteer:protocol SEND ► {“method”:“Target.setDiscoverTargets”,“params”:{“discover”:true},“id”:1 } 2019-07-18T14:23:45.014Z puppeteer:protocol ◀ RECV {“method”:“Target.targetCreated”,“params”:{“targetInfo”:{“targetId”:“42 cb873a-c4ff-4f88-935a-cf32f2d0d2ec”,“type”:“browser”,“title”:“”,“url”:“”,“attached”:true}}} 2019-07-18T14:23:45.015Z puppeteer:protocol ◀ RECV {“method”:“Target.targetCreated”,“params”:{“targetInfo”:{“targetId”:“FD AB92755EEA51A92257E4D25DBCD96B”,“type”:“page”,“title”:“”,“url”:“about:blank”,“attached”:false,“browserContextId”:“E1C232D2 2938D38A7B0C6B3F18147F65”}}} 2019-07-18T14:23:45.015Z puppeteer:protocol ◀ RECV {“method”:“Target.targetCreated”,“params”:{“targetInfo”:{“targetId”:“aa d7b4b8-bb8b-4d5f-b9f1-76b65a3e28af”,“type”:“browser”,“title”:“”,“url”:“”,“attached”:false}}} 2019-07-18T14:23:45.015Z puppeteer:protocol ◀ RECV {“id”:1,“result”:{}} 2019-07-18T14:23:45.017Z puppeteer:protocol SEND ► {“method”:“Target.createTarget”,“params”:{“url”:“about:blank”},“id”:2} [percy] percy has started. 2019-07-18T14:23:45.061Z puppeteer:protocol ◀ RECV {“method”:“Target.targetCreated”,“params”:{“targetInfo”:{“targetId”:“2E B62FDBE6D318544547EF7844701A8B”,“type”:“page”,“title”:“”,“url”:“”,“attached”:false,“browserContextId”:“E1C232D22938D38A7B0C6B3F18147F65”}}} 2019-07-18T14:23:45.061Z puppeteer:protocol ◀ RECV {“id”:2,“result”:{“targetId”:“2EB62FDBE6D318544547EF7844701A8B”}} 2019-07-18T14:23:45.065Z puppeteer:protocol ◀ RECV {“method”:“Target.targetInfoChanged”,“params”:{“targetInfo”:{“targetId” :“FDAB92755EEA51A92257E4D25DBCD96B”,“type”:“page”,“title”:“about:blank”,“url”:“about:blank”,“attached”:false,“browserContextId”:“E1C232D22938D38A7B0C6B3F18147F65”}}} ‘cypress’ is not recognized as an internal or external command, operable program or batch file. events.js:174 throw er; // Unhandled ‘error’ event ^

Error: spawn cypress ENOENT at notFoundError (C:\Users\Patrick.DESKTOP-Q3EBHKB\node_modules\cross-spawn\lib\enoent.js:6:26) at verifyENOENT (C:\Users\Patrick.DESKTOP-Q3EBHKB\node_modules\cross-spawn\lib\enoent.js:40:16) at ChildProcess.cp.emit (C:\Users\Patrick.DESKTOP-Q3EBHKB\node_modules\cross-spawn\lib\enoent.js:27:25) at Process.ChildProcess._handle.onexit (internal/child_process.js:248:12) Emitted ‘error’ event at: at ChildProcess.cp.emit (C:\Users\Patrick.DESKTOP-Q3EBHKB\node_modules\cross-spawn\lib\enoent.js:30:37) at Process.ChildProcess._handle.onexit (internal/child_process.js:248:12)

Anyone has a clue on how to fix this?

{
  "devDependencies": {
    "@percy/cypress": "^1.0.9",
    "cypress": "^3.4.0"
  }
}

Regards, Patrick

Issue Analytics

  • State:closed
  • Created 4 years ago
  • Comments:17 (9 by maintainers)

github_iconTop GitHub Comments

1reaction
Robdel12commented, Jul 19, 2019

Hey Patrick!

I’m going to look to try and reproduce this today. I can’t reproduce it on my local machine but I’ll try on my windows machine a little later today. It looks like from that output the release might have been botched. Could you try npx @percy/agent -- cypress run? We mirror the percy package with @percy/agent, so I’m wondering if both packages are suffering from this.

It looks like ubuntu gets further, even if it’s spitting out a bunch of error goop at the beginning.

[percy] Failed to establish a connection with http://localhost:5338/percy/healthcheck

That usually means you’re hitting this issue: #104

0reactions
Robdel12commented, Aug 6, 2019

Hey @pgroot91 happy to hear that!

I’m going to keep an eye out for git bash issues 🤔 Pretty curious as to what’s going on there. Feel free to reach out with any other questions / issues, we’d love to help!

Read more comments on GitHub >

github_iconTop Results From Across the Web

Cypress - Percy Docs
Finally, wrap your test runner command in the percy exec command. This will start a Percy agent to receive snapshots from your Cypress...
Read more >
Webinar Recording | Cypress.io + Percy = End-to-end ...
Webinar Recording | Cypress.io + Percy = End-to-end functional and visual testing for the web · Testing an app's functionality with Cypress.
Read more >
cGs - River Thames Conditions - Environment Agency - GOV.UK
Sentence start with even though, Reis adem zilkic, 6735b xp drivers! ... 25 words or less answers, Field and stream 1871 safe, Cobalt...
Read more >
Participant List | World Bank
Cyprus. Ivo. Germann. Head. Embassy of Switzerland. Switzerland ... Percy. Downe. Senator, Vice-Chair of the. Standing Senate.
Read more >
Cypress.io + Percy = End-to-end functional and visual testing ...
Your browser can't play this video. Learn more. Switch camera.
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