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, mkdir '/var/root/.local/share/.nativescript-cli'

See original GitHub issue

Getting Error: EACCES: permission denied, mkdir '/var/root/.local/share/.nativescript-cli' at FiberFuture.Future.wait (/usr/local/lib/node_modules/nativescript/node_modules/fibers/future.js:535:15) at /usr/local/lib/node_modules/nativescript/lib/nativescript-cli.js:20:45 - - - - - at Error (native) when trying to do sudo npm i -g nativescript at OS X 10.11.2 (15C50) npm - 3.3.12 node - v5.3.0 mkdir /var/root/.local/share/.nativescript-cli works fine and doesn’t solve the issue

Issue Analytics

  • State:closed
  • Created 8 years ago
  • Comments:5 (1 by maintainers)

github_iconTop GitHub Comments

43reactions
nypraisecommented, Jan 1, 2016

I get the same error.

Edit:

This solved it: npm install -g --unsafe-perm nativescript

13reactions
ghostcommented, May 25, 2017

Why do so many node packages insist on adding a hidden directory to the current users home folder?

Read more comments on GitHub >

github_iconTop Results From Across the Web

Error: EACCES: permission denied, mkdir '/usr/local/lib ...
Solution: You need to change the ownership of folder node_modules , because you use sudo npm install -g node-sass , so its ownership...
Read more >
Ubuntu 16.04 - Setting Up Nativescript - Programster's Blog
Install Nativescript CLI. Install the nativescript CLI You ... EACCES: permission denied, mkdir '/home/$USER/.local/share/.nativescript-cli' ...
Read more >
How to fix ( Error: EACCES: permission denied, mkdir )
This command fixed the issue. It worked like a charm and installed all gulp packages without any directory permission errors. Frontend · Gulp....
Read more >
T212602 Docker-based npm jobs have unwritable homedir
... Error: EACCES: permission denied, mkdir '/nonexistent' at Error (native) at Object.fs. ... a default equal to $HOME/.local/share should be used.
Read more >
An unexpected error occurred: "EACCES: permission denied
An unexpected error occurred: "EACCES: permission denied, mkdir '/Users/lera/Library/Caches/Yarn/v1'". If the current behavior is a bug, .
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