Appium react@~15.3.1 编辑记录
Posted
tags:
篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了Appium react@~15.3.1 编辑记录相关的知识,希望对你有一定的参考价值。
\
npm install -save [email protected]~15.3.1
npm WARN checkPermissions Missing write access to /usr/local/lib/node_modules/appium/node_modules/[email protected]@appium-xcuitest-driver/node_modules
[email protected] /usr/local/lib/node_modules/appium/node_modules/[email protected]@appium-xcuitest-driver
│ ├── [email protected]
│ ├─┬ [email protected]
│ │ ├─┬ [email protected]
│ │ │ ├─┬ [email protected]
│ │ │ │ └── [email protected]
│ │ │ └── [email protected]
│ │ └── [email protected]
│ ├─┬ [email protected]
│ │ └── [email protected]
│ ├── [email protected]
│ └── [email protected]
│ └── [email protected]
npm ERR! Darwin 16.7.0
npm ERR! argv "/usr/local/bin/node" "/usr/local/bin/npm" "install" "-save" "[email protected]~15.3.1"
npm ERR! node v6.11.5
npm ERR! npm v3.10.10
npm ERR! path /usr/local/lib/node_modules/appium/node_modules/[email protected]@appium-xcuitest-driver/node_modules
npm ERR! code EACCES
npm ERR! errno -13
npm ERR! syscall access
npm ERR! Error: EACCES: permission denied, access ‘/usr/local/lib/node_modules/appium/node_modules/[email protected]@appium-xcuitest-driver/node_modules‘
npm ERR! at Error (native)
npm ERR! { Error: EACCES: permission denied, access ‘/usr/local/lib/node_modules/appium/node_modules/[email protected]@appium-xcuitest-driver/node_modules‘
npm ERR! at Error (native)
npm ERR! errno: -13,
npm ERR! code: ‘EACCES‘,
npm ERR! syscall: ‘access‘,
npm ERR! path: ‘/usr/local/lib/node_modules/appium/node_modules/[email protected]@appium-xcuitest-driver/node_modules‘ }
npm ERR!
npm ERR! Please try running this command again as root/Administrator.
npm ERR! Darwin 16.7.0
npm ERR! argv "/usr/local/bin/node" "/usr/local/bin/npm" "install" "-save" "[email protected]~15.3.1"
npm ERR! node v6.11.5
npm ERR! npm v3.10.10
npm ERR! path npm-debug.log.91483753
npm ERR! code EACCES
npm ERR! errno -13
npm ERR! syscall open
npm ERR! Error: EACCES: permission denied, open ‘npm-debug.log.91483753‘
npm ERR! at Error (native)
npm ERR! { Error: EACCES: permission denied, open ‘npm-debug.log.91483753‘
npm ERR! at Error (native)
npm ERR! errno: -13,
npm ERR! code: ‘EACCES‘,
npm ERR! syscall: ‘open‘,
npm ERR! path: ‘npm-debug.log.91483753‘ }
npm ERR!
npm ERR! Please try running this command again as root/Administrator.
npm ERR! Please include the following file with any support request:
npm ERR! /usr/local/lib/node_modules/appium/node_modules/[email protected]@appium-xcuitest-driver/WebDriverAgent/npm-debug.log
bogon:WebDriverAgent zhouhaijun$ sodu npm install -save [email protected]~15.3.1
-bash: sodu: command not found
bogon:WebDriverAgent zhouhaijun$ sudo npm install -save [email protected]~15.3.1
Password:
[email protected] /usr/local/lib/node_modules/appium/node_modules/[email protected]@appium-xcuitest-driver
│ ├── [email protected]
│ ├─┬ [email protected]
│ │ ├─┬ [email protected]
│ │ │ ├─┬ [email protected]
│ │ │ │ └── [email protected]
│ │ │ └── [email protected]
│ │ └── [email protected]
│ ├─┬ [email protected]
│ │ └── [email protected]
│ ├── [email protected]
│ └── [email protected]
│ └── [email protected]
https://github.com/facebook/WebDriverAgent
官方 issue :https://github.com/appium/appium/issues/7088
官方已经回复了,不支持运行 WebDriverAgent 自带的 inspector 。
至于为何单独移出来就可以用,我猜和 webpack 检测相对目录的根目录有关。有兴趣你可以细究下。
以上是关于Appium react@~15.3.1 编辑记录的主要内容,如果未能解决你的问题,请参考以下文章
React工作记录三十react中form表单编辑的时候回显无法回显
Appium 用于 React Native 应用程序的 accessibilityLabel 的替代方案
React工作记录二十九react中使用的富文本编辑器braft-editor使用
在 iOS 设备的 appium 中无法从 react-native 中找到内部 <Text> 标记/组件的 testID