无法使用 node.js 安装 appium
Not able to install appium using node.js
目前在尝试使用 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 ]**
sudo npm install --unsafe-per=true -g appium
此致,
苏克兰
Appium 的安装取决于一些因素
- 安装 Java 并设置环境路径
安装Node.js
安装APPIUM
确保以上三个安装是按照文档进行的,并使用开放的互联网进行下载。
目前在尝试使用 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 ]**
sudo npm install --unsafe-per=true -g appium
此致, 苏克兰
Appium 的安装取决于一些因素
- 安装 Java 并设置环境路径
安装Node.js
安装APPIUM
确保以上三个安装是按照文档进行的,并使用开放的互联网进行下载。