【问题标题】:appuim installation with node js使用 node js 安装 appium
【发布时间】:2019-05-16 09:19:05
【问题描述】:

如何解决这个问题?

verbose node v10.14.2

verbose npm  v6.4.1

error code ELIFECYCLE

error errno 1

error appium-chromedriver@4.10.0 install: `node install-npm.js`

error Exit status 1

error Failed at the appium-chromedriver@4.10.0 install script.

error This is probably not a problem with npm. There is likely additional logging output above.

verbose exit [ 1, true ]

【问题讨论】:

  • @dear binayak 我完成了本文档中的所有步骤,但我反复看到此错误。
  • 你能说说你是怎么得到这个错误的吗?你想做什么?你想安装什么东西吗?
  • 另外你能知道你执行了哪个命令来安装appium吗?
  • @suban 我尝试在 powershell 中使用“npm install -g appium”安装 appium

标签: node.js appium


【解决方案1】:

首先,我强烈建议使用node version manager 进行 Node/npm 安装。

Appium 安装与节点版本 10.1.0 完美配合:

nvm install 10.1.0 //in new shell nvm use node npm install -g appium

更新:我认为您正面临a similar issue,由Windows 防火墙某些代理 引起。

您需要做的是在 npm install 期间将 --chromedriver_cdnurl 标志设置为可在防火墙内访问的服务器:

npm install -g appium --chromedriver_cdnurl=http://localhost:1234

instructions 之后设置 npm 代理可能会更好

【讨论】:

  • 我已安装 nodejs v10.1.0 但我再次看到此错误... C:\Windows\System32>node -v v10.1.0 npm ERR!代码 ELIFECYCLE npm 错误! errno 1 npm 错误! appium-chromedriver@4.10.1 安装:node install-npm.js npm ERR!退出状态 1 npm ERR! npm 错误!在 appium-chromedriver@4.10.1 安装脚本失败。 npm 错误!这可能不是 npm 的问题。上面可能还有额外的日志输出。
【解决方案2】:

这有效:sudo npm install -g appium --unsafe-perm=true --allow-root

【讨论】:

  • 你不应该通过 sudo 安装 appium,因为你可能会遇到服务程序启动的问题。
猜你喜欢
  • 2014-11-30
  • 1970-01-01
  • 1970-01-01
  • 2023-04-01
  • 2016-03-16
  • 2015-03-06
  • 1970-01-01
  • 1970-01-01
  • 1970-01-01
相关资源
最近更新 更多