Appium react@~15.3.1 編輯記錄
\
npm install -save react@~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" "react@~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" "react@~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 react@~15.3.1
-bash: sodu: command not found
bogon:WebDriverAgent zhouhaijun$ sudo npm install -save react@~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 編輯記錄