zoukankan      html  css  js  c++  java
  • appium安装问题集锦

    问题一:

    MacBook-Air:Cellar$ npm -v

    dyld: Library not loaded: /usr/local/opt/icu4c/lib/libicui18n.61.dylib

      Referenced from: /usr/local/bin/node

      Reason: image not found

    Abort trap: 6

    解决办法:

    brew uninstall --ignore-dependencies --force node
    brew uninstall --ignore-dependencies --force icu4c
    brew install icu4c
    brew unlink icu4c && brew link icu4c --force
    brew install node

    问题二: 

    MacBook-Air:Cellar$ npm install -g appium

    /usr/local/bin/appium -> /usr/local/lib/node_modules/appium/build/lib/main.js

     

    > appium-chromedriver@3.5.2 install /usr/local/lib/node_modules/appium/node_modules/appium-chromedriver

    > node install-npm.js

     

    Error trying to install Chromedriver binary. Waiting and trying again. frame.getFileName is not a function

    Error trying to install Chromedriver binary. Waiting and trying again. frame.getFileName is not a function

    Error trying to install Chromedriver binary. Waiting and trying again. frame.getFileName is not a function

    Error trying to install Chromedriver binary. Waiting and trying again. frame.getFileName is not a function

     

    解决办法:

    brew uninstall node

    安装nvm

    $ brew install nvm 

    在shell中可以使用nvm命令

    如果没有.bash_profile文件需要自行touch .bash_profile哦

    $ cd ~ 

    $ vim .bash_profile

    然后添加以下命令:

    export NVM_DIR=~/.nvm

    source $(brew --prefix nvm)/nvm.sh

    然后重新source

    $ source .bash_profile

    使用nvm安装node

    $ nvm ls-remote 查看 所有的node可用版本

    $ nvm install xxx 下载你想要的版本

    $ nvm use xxx 使用指定版本的node 

    $ nvm alias default xxx 每次启动终端都使用该版本的node

    
    
  • 相关阅读:
    jquery 学习(五)
    iOS: 学习笔记, Swift名字空间
    iOS: 学习笔记, Swift与C指针交互(译)
    iOS: 学习笔记, Swift运算符定义
    iOS: 学习笔记, Swift与Objective-C混用总结
    iOS: 学习笔记, Swift与Objective-C混用简明教程(转载)
    股票查询接口: 腾讯
    iOS: 学习笔记, swift扩展
    iOS:Swift界面实例1, 简单界面
    iOS: 学习笔记, 用代码驱动自动布局实例(swift)
  • 原文地址:https://www.cnblogs.com/wx2017/p/8983952.html
Copyright © 2011-2022 走看看