Code Monkey home page Code Monkey logo

Comments (13)

shane51 avatar shane51 commented on July 4, 2024 1

workaround by appium cannot be installed via Ansible, Salt or Shell script

workaround:

- name:  Install "appium" node.js package
  shell: 'npm install -g appium || true'

from ansible-modules-extras.

gregdek avatar gregdek commented on July 4, 2024

[module: packaging/language/npm.py]

from ansible-modules-extras.

ansibot avatar ansibot commented on July 4, 2024

@chrishoffman, ping. This issue is still waiting on your response.
click here for bot help

from ansible-modules-extras.

shane51 avatar shane51 commented on July 4, 2024

I met the same issue.

When I tried to use NPM to install Appium,

- name:  Install "appium" node.js package
  npm: name=appium global=yes

ansible throw exceptions as below, and appium failed to install:

fatal: [default]: FAILED! => {"changed": false, "cmd": "/usr/bin/npm install --global appium", "failed": true, "msg": "", "rc": 1, "stderr": "\n\n", "stdout": "/usr/bin/appium -> /usr/lib/node_modules/appium/build/lib/main.js\n/usr/bin/authorize-ios -> /usr/lib/node_modules/appium/node_modules/.bin/authorize-ios\n\n> [email protected] install /usr/lib/node_modules/appium/node_modules/appium-android-driver/node_modules/appium-chromedriver\n> node install-npm.js\n\n", "stdout_lines": ["/usr/bin/appium -> /usr/lib/node_modules/appium/build/lib/main.js", "/usr/bin/authorize-ios -> /usr/lib/node_modules/appium/node_modules/.bin/authorize-ios", "", "> [email protected] install /usr/lib/node_modules/appium/node_modules/appium-android-driver/node_modules/appium-chromedriver", "> node install-npm.js", ""]}

When I replaced npm module with shell

- name:  Install "appium" node.js package
  shell: 'npm install -g appium --silent'

it throw another error:

fatal: [default]: FAILED! => {"changed": true, "cmd": "npm install -g appium --silent", "delta": "0:02:21.751994", "end": "2016-08-24 01:18:17.785057", "failed": true, "rc": 1, "start": "2016-08-24 01:15:56.033063", "stderr": "", "stdout": "/usr/bin/appium -> /usr/lib/node_modules/appium/build/lib/main.js\n/usr/bin/authorize-ios -> /usr/lib/node_modules/appium/node_modules/.bin/authorize-ios", "stdout_lines": ["/usr/bin/appium -> /usr/lib/node_modules/appium/build/lib/main.js", "/usr/bin/authorize-ios -> /usr/lib/node_modules/appium/node_modules/.bin/authorize-ios"], "warnings": []}

but this time appium was installed successfully

OS: ubuntu 16.0.4

from ansible-modules-extras.

ansibot avatar ansibot commented on July 4, 2024

@shane-walker, ping. This issue is still waiting on your response.
click here for bot help

from ansible-modules-extras.

diannaowa avatar diannaowa commented on July 4, 2024

Use "su - -c 'COMMAND'"
It works for me:

- name:  Install "appium" node.js package
  shell: 'su - -c "npm install -g appium  --silent"'

ENV:
Ubuntu 14.04.4 LTS
ansible 2.1.0.0

from ansible-modules-extras.

ansibot avatar ansibot commented on July 4, 2024

@shane-walker, ping. This issue is still waiting on your response.
click here for bot help

from ansible-modules-extras.

ansibot avatar ansibot commented on July 4, 2024

@shane-walker, ping. This issue is still waiting on your response.
click here for bot help

from ansible-modules-extras.

ansibot avatar ansibot commented on July 4, 2024

@shane-walker, ping. This issue is still waiting on your response.
click here for bot help

from ansible-modules-extras.

ansibot avatar ansibot commented on July 4, 2024

@shane-walker, ping. This issue is still waiting on your response.
click here for bot help

from ansible-modules-extras.

ansibot avatar ansibot commented on July 4, 2024

@shane-walker, ping. This issue is still waiting on your response.
click here for bot help

from ansible-modules-extras.

ansibot avatar ansibot commented on July 4, 2024

This repository has been locked. All new issues and pullrequests should be filed in https://github.com/ansible/ansible

Please read through the repomerge page in the dev guide. The guide contains links to tools which automatically move your issue or pullrequest to the ansible/ansible repo.

from ansible-modules-extras.

ansibot avatar ansibot commented on July 4, 2024

This issue was migrated to ansible/ansible#29195

from ansible-modules-extras.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.