2017-09-20 156 views
0

我試圖在Mac OS 10.12.5上執行sudo npm install -g appiumnpm install:錯誤:EACCES:權限被拒絕,mkdir

我得到這個錯誤:

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

'/usr/local/lib/node_modules/appium/node_modules/appium-chromedriver/2017820-44752-12jfqpb.z2hd'

npm ERR! code ELIFECYCLE

npm ERR! errno 1

npm ERR! [email protected] install: node install-npm.js npm ERR! Exit status 1 npm ERR!

回答

0

我重新安裝節點/ NPM。問題解決了。

1

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

爲我工作

相關問題