问题描述
我试图在Mac OS 10.12.5上执行sudo npm install -g appium
.
I attempted to do a sudo npm install -g appium
on Mac OS 10.12.5.
我收到此错误:
信息Chromedriver安装临时文件将chromedriver_mac64写入...
info Chromedriver Install Opening temp file to write chromedriver_mac64 to...
错误:EACCES:权限被拒绝,mkdir
Error: EACCES: permission denied, mkdir
'/usr/local/lib/node_modules/appium/node_modules/appium-chromedriver/2017820-44752-12jfqpb.z2hd'
'/usr/local/lib/node_modules/appium/node_modules/appium-chromedriver/2017820-44752-12jfqpb.z2hd'
npm ERR!代码ELIFECYCLE
npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! errno 1
npm ERR! appium-chromedriver@3.0.1安装:node install-npm.js
npm ERR!退出状态1 npm ERR!
npm ERR! appium-chromedriver@3.0.1 install: node install-npm.js
npm ERR! Exit status 1 npm ERR!
这不是一个重复的问题,因为此安装尝试是使用sudo进行的,而另一个尝试不是.
this is not a dup question, as this install attempt was with sudo, as the other one was not.
推荐答案
我重新安装了Node/NPM.问题解决了.
I reinstalled Node/NPM. Problem solved.
这篇关于npm安装:错误:EACCES:权限被拒绝,mkdir的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!