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.

Installing cypress on mac - dyld: Library not loaded

See original GitHub issue

I tried to do this but it didn’t help

rm -rf /Users/srinuk/Library/Caches/Cypress/
$ ./node_modules/.bin/cypress open
It looks like this is your first time using Cypress: 3.2.0

 ✖  Verifying Cypress can run /Users/kevinsimper/Library/Caches/Cypress/3.2.0/Cypress.app
   → Cypress Version: 3.2.0
Cypress failed to start.

This is usually caused by a missing library or dependency.

The error below should indicate which dependency is missing.

https://on.cypress.io/required-dependencies

If you are using Docker, we provide containers with all required dependencies installed.
----------

dyld: Library not loaded: @rpath/Electron Framework.framework/Electron Framework
Referenced from: /Users/kevinsimper/Library/Caches/Cypress/3.2.0/Cypress.app/Contents/MacOS/Cypress
Reason: no suitable image found.  Did find:
/Users/kevinsimper/Library/Caches/Cypress/3.2.0/Cypress.app/Contents/MacOS/../Frameworks/Electron Framework.framework/Electron Framework: file too short
/Users/kevinsimper/Library/Caches/Cypress/3.2.0/Cypress.app/Contents/MacOS/../Frameworks/Electron Framework.framework/Electron Framework: stat() failed with errno=1
----------

Platform: darwin (18.5.0)
Cypress Version: 3.2.0
$ node -v
v11.6.0
$ npm -v
6.5.0-next.0
$ which node
/Users/kevinsimper/.nvm/versions/node/v11.6.0/bin/node

Mojave 10.14.4 (18E226)

Issue Analytics

  • State:closed
  • Created 4 years ago
  • Comments:7 (1 by maintainers)

github_iconTop GitHub Comments

13reactions
kevinsimpercommented, May 2, 2019

It worked by clearing the Cypress cache, the install program must have corrupted the cache there:

$ rm -rf /Users/kevinsimper/Library/Caches/Cypress/

12reactions
renekorsscommented, May 24, 2019

After clearing Cypress cache like @kevinsimper suggested, I had to install cypress again with: $(npm bin)/cypress install After that it worked.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Cypress failed to start on MacOS - e2e testing - Stack Overflow
Simply try ./node_modules/.bin/cypress install if you're using Cypress for the first time.
Read more >
Installing - Cypress Documentation
What you'll learn How to install Cypress via npm How to install Cypress via direct download How to version and run Cypress via...
Read more >
how to solve dyld library not loaded npm error - YouTube
How to solve dyld : Library not loaded : /usr/local/opt/icu4c/lib/libicui18n.60.dylibuse those commands to fix the issue:brew uninstall ...
Read more >
Error: EPERM: operation not permitted, open \TestAutomation ...
[Solved]-Error: EPERM: operation not permitted, open \TestAutomation\cypress.json'-node.js.
Read more >
Library not loaded: /opt/homebrew/opt/icu4c/lib/libicuio.68.dylib
Install (or update) the Xcode developer tools. ... Reinstall icu4c . ... Make sure no errors prevent Homebrew from installing icu4c properly. For ......
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