npm install: Error: EACCES: permission denied, mkdir


I attempted to do a sudo npm install -g appium on Mac OS 10.12.5.

I get this error:


info Chromedriver Install Installing Chromedriver version '2.30' for platform 'mac' and architecture '64'

info Chromedriver Install Opening temp file to write chromedriver_mac64 to...

Error: EACCES: permission denied, mkdir



npm ERR! errno 1

npm ERR! appium-chromedriver@3.0.1 install: node install-npm.js npm ERR! Exit status 1 npm ERR!


this is not a dup question, as this install attempt was with sudo, as the other one was not.



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


Worked for me


you are using npm so you have to use

<strong>sudo npm install --unsafe-perm</strong><br /> In unsafe mode with every command you run <br /> hopefully, it will help


I reinstalled Node/NPM. Problem solved.


  • In CloudKit, after adding a record, the new record will not appear in a query that is conducted righ
  • URL Bookmarking R Shiny
  • How to apply texture on an object loaded by OBJLoader?
  • How to parse a float, sent by a Bluetooth device, in Swift?
  • How to detect if MediaRecorder is used by another application?
  • How to download Appium Desktop in Ubuntu 16
  • How to marry NioServerSocketChannelFactory and WorkManager
  • Ternary Operators & Maintenance [closed]
  • Various issues installing igraph in Visual Studio 2010 and Cygwin/MinGW (“sys/time.h not found”)
  • Botframework Dialog migration v3 to v4
  • Should authentication be in a separate service for wcf?
  • three.js — fit a background image panorama
  • How to get selected text using android spinner wheel?
  • Taxonomy is not working
  • jQuery/mobile Safari bug?
  • Angular $resource is not working
  • How Can I access WCF services using a Web Reference?
  • javascript - Sum values from JSON
  • How to pass a bitfield (by reference) to a function?
  • Java: search words in two dimensional array
  • JavaFX resize children relative to parent
  • Any VBA code to align the picture from PowerPoint?
  • Silverlight MVVM, stop SelectionChanged triggering in response to ItemsSource reset
  • Avoiding duplicated data in same table with jquery
  • How to set http status code when responding to servlet client from Filter class-method in tomcat
  • SpringBoot don't replacen System variable {user.home} in Spring Tool Suite Version: 3.8.4.RELEA
  • How can I do case insensitive string search with Linq and SQL Server?
  • Unable to connect to AWS RDS through PDO
  • Is possible having two COM STA instances of the same component?
  • Checking for valid enum types from protobufs
  • C# code can't “see” the methods in my C++ dll
  • When to use the tag in the head and body section of a html page? [duplicate]
  • Create an average of multiple excel chart without the data source
  • how to run ejabberd with Erlang on Heroku?
  • How to use Streams api peek() function and make it work?
  • `$http:badreq Bad Request Configuration` - from angular post method, what is wrong here?