I attempted to do a
sudo npm install -g appium on Mac OS 10.12.5.
I get this error:<blockquote>
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! code ELIFECYCLE
npm ERR! errno 1
npm ERR! firstname.lastname@example.org install:
npm ERR! Exit status 1
this is not a dup question, as this install attempt was with sudo, as the other one was not.Answer1:
sudo npm install -g appium --unsafe-perm=true --allow-root</blockquote>
Worked for meAnswer2:
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 helpAnswer3:
I reinstalled Node/NPM. Problem solved.