EACCES: permission denied, mkdir '/var/root/.local/share/.nativescript-cli'
See original GitHub issueGetting
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:
- Created 8 years ago
- Comments:5 (1 by maintainers)
Top 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 >
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 Free
Top 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
I get the same error.
Edit:
This solved it: npm install -g --unsafe-perm nativescript
Why do so many node packages insist on adding a hidden directory to the current users home folder?