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.

Can't run tests without sudo permissons

See original GitHub issue

Getting the next error, when trying to execute tests without sudo.

Error: EACCES: permission denied, mkdir '/Users/antonnazarenko/Library/Application Support/Cypress/cy/production/projects/myproject-62bffe85f9a4e9b8ad4560f57883854a'

With sudo permissions everything works well, somebody know how to fix it? The command which I’m using to run tests: ./node_modules/.bin/cypress run --headless

Issue Analytics

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

github_iconTop GitHub Comments

23reactions
AntonNazarenkocommented, Apr 14, 2020

fixed, I just needed to delete this folder, because for some reasons it required the root permissions /Users/antonnazarenko/Library/Application Support/Cypress/

0reactions
AntonNazarenkocommented, Apr 14, 2020

@jennifer-shehane

// ***********************************************************
// This example support/index.js is processed and
// loaded automatically before your test files.
//
// This is a great place to put global configuration and
// behavior that modifies Cypress.
//
// You can change the location of this file or turn off
// automatically serving support files with the
// 'supportFile' configuration option.
//
// You can read more here:
// https://on.cypress.io/configuration
// ***********************************************************

// Import commands.js using ES2015 syntax:
import './commands'

// Alternatively you can use CommonJS syntax:
// require('./commands')
Read more comments on GitHub >

github_iconTop Results From Across the Web

permissions - Can't run apps without sudo - Ask Ubuntu
I was thinking adding to group users, but dunno how to do it or if it safe to do this, on the spotify...
Read more >
Running a command with root priviliges without SUDO and ...
The best solution for me would be to run a generic binary that requires root privileges but from a non-root user and without...
Read more >
Test whether a user has sudo privileges without requiring user ...
I'm afraid the only thing you can test is if the user has sudo privileges without a password. Execute sudo -n true.
Read more >
How to check if I have sudo access? - Super User
To find out what you're allowed to run with different privileges, you can use sudo -l . Note that this command requires you...
Read more >
Ansible non-root sudo user and "become" privilege escalation
It basically runs its Python script with sudo david in front. the user 'david' on the remote box has sudo privileges. It means...
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