Installing cypress on mac - dyld: Library not loaded
See original GitHub issueI 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:
- Created 4 years ago
- Comments:7 (1 by maintainers)
Top 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 >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
It worked by clearing the Cypress cache, the install program must have corrupted the cache there:
$ rm -rf /Users/kevinsimper/Library/Caches/Cypress/
After clearing Cypress cache like @kevinsimper suggested, I had to install cypress again with:
$(npm bin)/cypress install
After that it worked.