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.

EACCES: permission denied, open '/Users/{user}/.amplify/logs/amplify-cli-2022-10-17.log'

See original GitHub issue

Before opening, please confirm:

  • I have installed the latest version of the Amplify CLI (see above), and confirmed that the issue still persists.
  • I have searched for duplicate or closed issues.
  • I have read the guide for submitting bug reports.
  • I have done my best to include a minimal, self-contained set of instructions for consistently reproducing the issue.
  • I have removed any sensitive information from my code snippets and submission.

How did you install the Amplify CLI?

npm

If applicable, what version of Node.js are you using?

16.13.1

Amplify CLI Version

10.2.3

What operating system are you using?

Mac OS 12.6

Did you make any manual changes to the cloud resources managed by Amplify? Please describe the changes made.

No

Amplify Categories

hosting

Amplify Commands

configure

Describe the bug

Get the following error: EACCES: permission denied, open ‘/Users/{user"/.amplify/logs/amplify-cli-2022-10-17.log’

It will not connect to AWS through terminal. Amplify is installed and functional, but cannot create access to aws for some reason.

Expected behavior

I expected it to work.

Reproduction steps

amplify configure

GraphQL schema(s)

# Put schemas below this line


Project Identifier

No response

Log output

# Put your logs below this line


Additional information

No response

Issue Analytics

  • State:closed
  • Created a year ago
  • Comments:9 (4 by maintainers)

github_iconTop GitHub Comments

1reaction
borisgotzcommented, Oct 17, 2022

I installed node using nvm, and now the errors are gone! Thanks!

On Mon, Oct 17, 2022 at 12:56 PM Boris Gotz @.***> wrote:

without sudo i got the following: [image: Screen Shot 2022-10-17 at 12.55.46 PM.png]

Most of the solutions online have been to just use sudo

On Mon, Oct 17, 2022 at 10:30 AM josef @.***> wrote:

Hey @borisgotz https://github.com/borisgotz do you also experience this when installing the CLI without sudo? Typically it is not recommended to install packages from npm with sudo. If you are experiencing a permissions issue installing global npm packages without sudo please refer to this npm doc https://docs.npmjs.com/resolving-eacces-permissions-errors-when-installing-packages-globally

— Reply to this email directly, view it on GitHub https://github.com/aws-amplify/amplify-cli/issues/11193#issuecomment-1281058200, or unsubscribe https://github.com/notifications/unsubscribe-auth/AHSOWTIDKAI64WP4IWVWNX3WDVWJBANCNFSM6AAAAAARHAMKTU . You are receiving this because you were mentioned.Message ID: @.***>

0reactions
josefaidtcommented, Nov 11, 2022

Closing due to inactivity. @ZeeLivermorium if you are still experiencing this issue please file a separate issue

Read more comments on GitHub >

github_iconTop Results From Across the Web

Error: EACCES: permission denied - node.js - Stack Overflow
This command fix the issue. It worked for me: sudo npm install -g --unsafe-perm=true --allow-root.
Read more >
Issues - GitHub
Error: EACCES: permission denied, open './stdout.log' #11 ... /home/user/.npm/_logs/2019-07-15T08_32_08_579Z-debug.log ~ 19s.
Read more >
How to fix `listen EACCES: permission denied` on any port
In my case the error appears because the port used belong to reserved ports for Hyper-V. This port range changes when I restart...
Read more >
How to fix EACCES errors with NPM on MacOS - WILL & SKILL
There are times when You get an ugly EACCES error message from NPM when You try to install an NPM package globally on...
Read more >
Error EACCES permission denied access usr local lib node ...
What might be causing the error Error: EACCES: permission denied, ... /Users/macbookmd101/.npm/_logs/2018-02-21T16_26_08_421Z-debug.log.
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