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.

macOS High Sierra fails to unzip Cypress on npm or Cypress install

See original GitHub issue

Current behavior:

Upon running npm install cypress -D or cypress install, the “Unzipping Cypress” step fails with a permission denied error.

Additional Info (images, stack traces, etc)

screen shot 2018-03-21 at 9 44 12 am

  • Operating System: macOS High Sierra Version 10.13.3
  • Cypress Version: 2.1.0
  • Browser Version: N/A

Issue Analytics

  • State:closed
  • Created 6 years ago
  • Reactions:5
  • Comments:18 (3 by maintainers)

github_iconTop GitHub Comments

3reactions
brian-manncommented, Jun 10, 2018

@cbohatka-cardinal This is 100% a system permission issue. My guess is that you’ve installed node or npm with sudo. Did any of you install node with nvm? You could try that. It appears you installed a system wide node, which is not recommended.

The error EACCES is coming from node when we try to access the zip that we just downloaded. I don’t believe there’s anything Cypress can do about it - the binary app and CLI is downloaded 10,000+ times a day on all 3 operating systems so I don’t think there’s anything that’s on our end.

You can try running DEBUG=cypress:* npm install cypress to reinstall the binary and see what happens.

You can also try using version 3.x.x of Cypress since we changed how the binary is cached and installed. I’m going to close this issue as there’s no way we can reproduce this since it’s too specific to your systems.

2reactions
albert-hoffmancommented, Aug 8, 2019

Use this commnad:

sudo npm install --unsafe-perm=true --allow-root

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 >
cypress-io/cypress - Gitter
Hi all, really quick one! I am trying to conditionally check a the url after a submit. If it contains 'foo' the do...
Read more >
How To Generate Test Report In NUnit? - LambdaTest
In this tutorial, you will learn about generating reports in NUnit along with some new features and advantages of Extent Reports.
Read more >
npm err! arg argument starts with non-ascii dash, this is probably ...
Environment Info: System: OS: macOS High Sierra 10.13.6 CPU: (8) x64 Intel(R) ... 3.4.1) √ Downloaded Cypress √ Unzipped Cypress √ Finished Installation...
Read more >
[Solved]-npm oracledb installation fails-angular.js
[Solved]-npm oracledb installation fails-angular.js ... Because your proxies need authentication but node-oracledb support for them is still pending (see ...
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