小编Dmi*_*viy的帖子

通过 npm 安装 Appium 会抛出“权限被拒绝”类型的错误

尝试为 node.js 安装 appium 包,但出现问题,提示 mkdir 权限被拒绝

我尝试以不同的方式运行此命令,并且以 root 用户身份运行并没有太大变化。以前有人遇到过这样的错误吗?

Dmytros-MacBook-Pro:~ root# npm install -g appium
/usr/local/bin/appium -> 
/usr/local/lib/node_modules/appium/build/lib/main.js

> appium-chromedriver@4.0.0 install 
/usr/local/lib/node_modules/appium/node_modules/appium-chromedriver
> node install-npm.js

(node:8302) UnhandledPromiseRejectionWarning: Error: EACCES: 
permission denied, mkdir 
'/usr/local/lib/node_modules/appium/node_modules/appium- 
chromedriver/201866-8302-85r6wr.u3tan'
(node:8302) UnhandledPromiseRejectionWarning: Unhandled promise 
rejection. This error originated either by throwing inside of an async function without a catch block, or by rejecting a promise which was not handled with .catch(). (rejection id: 1)
(node:8302) [DEP0018] DeprecationWarning: Unhandled promise rejections 
are deprecated. In the future, …
Run Code Online (Sandbox Code Playgroud)

android node.js npm appium

2
推荐指数
1
解决办法
5291
查看次数

标签 统计

android ×1

appium ×1

node.js ×1

npm ×1