无法使用node.js安装appium

问题描述 投票:0回答:2

当前尝试使用Node.js安装Appium时出错(Windows 10)。有关更多信息,请参阅以下日志文​​件。你能帮忙吗?

12808 warn optional SKIPPING OPTIONAL DEPENDENCY: [email protected] (node_modules\appium\node_modules\fsevents):
12809 warn notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for [email protected]: 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: [email protected] 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 [email protected]
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 [email protected] install: `node install-npm.js`
12820 error Exit status 1
**12821 error Failed at the [email protected] install script.
12821 error This is probably not a problem with npm. There is likely additional logging output above.
12822 verbose exit [ 1, true ]**
node.js appium-android
2个回答
0
投票

Appium的安装取决于一些事情

  1. 安装Java和设置环境路径

Installation of Java

  1. Node.js的安装 Install Node.js
  2. APPI的安装

Appium Installation

确保以上三个安装符合文档并使用开放式互联网进行下载。


1
投票

sudo npm install --unsafe-per = true -g appium

此致,Sukrant

© www.soinside.com 2019 - 2024. All rights reserved.