尝试使用Node.js(Windows 10)安装Appium时当前出现错误。有关更多信息,请参考以下日志文件。你能帮忙吗?
12808 warn optional SKIPPING OPTIONAL DEPENDENCY: fsevents@2.0.1 (node_modules\appium\node_modules\fsevents):
12809 warn notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for fsevents@2.0.1: wanted {"os":"darwin","arch":"any"} (current: {"os":"win32","arch":"x64"})
12810 verbose notsup SKIPPING OPTIONAL DEPENDENCY: Valid OS: darwin
12810 verbose notsup SKIPPING OPTIONAL DEPENDENCY: Valid Arch: any
12810 verbose notsup SKIPPING OPTIONAL DEPENDENCY: Actual OS: win32
12810 verbose notsup SKIPPING OPTIONAL DEPENDENCY: Actual Arch: x64
12811 verbose stack Error: appium-chromedriver@4.10.1 install: `node install-npm.js`
12811 verbose stack Exit status 1
12811 verbose stack at EventEmitter.<anonymous> (C:\Program Files\nodejs\node_modules\npm\node_modules\npm-lifecycle\index.js:301:16)
12811 verbose stack at EventEmitter.emit (events.js:182:13)
12811 verbose stack at ChildProcess.<anonymous> (C:\Program Files\nodejs\node_modules\npm\node_modules\npm-lifecycle\lib\spawn.js:55:14)
12811 verbose stack at ChildProcess.emit (events.js:182:13)
12811 verbose stack at maybeClose (internal/child_process.js:962:16)
12811 verbose stack at Process.ChildProcess._handle.onexit (internal/child_process.js:251:5)
12812 verbose pkgid appium-chromedriver@4.10.1
12813 verbose cwd C:\Users\test
12814 verbose Windows_NT 10.0.17763
12815 verbose argv "C:\\Program Files\\nodejs\\node.exe" "C:\\Program Files\\nodejs\\node_modules\\npm\\bin\\npm-cli.js" "install" "-g" "appium" "-unsafe-perm=true" "-allow-root"
12816 verbose node v10.15.0
12817 verbose npm v6.4.1
12818 error code ELIFECYCLE
12819 error errno 1
12820 error appium-chromedriver@4.10.1 install: `node install-npm.js`
12820 error Exit status 1
**12821 error Failed at the appium-chromedriver@4.10.1 install script.
12821 error This is probably not a problem with npm. There is likely additional logging output above.
12822 verbose exit [ 1, true ]**
答案 0 :(得分:1)
sudo npm install --unsafe-per = true -g appium
关于, 保证人
答案 1 :(得分:0)
安装Appium取决于几件事
安装Node.js
安装APPIUM
请确保按照文档说明进行上述三个安装,并使用开放的Internet进行下载。