Comments (13)
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.
[module: packaging/language/npm.py]
from ansible-modules-extras.
@chrishoffman, ping. This issue is still waiting on your response.
click here for bot help
from ansible-modules-extras.
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.
@shane-walker, ping. This issue is still waiting on your response.
click here for bot help
from ansible-modules-extras.
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.
@shane-walker, ping. This issue is still waiting on your response.
click here for bot help
from ansible-modules-extras.
@shane-walker, ping. This issue is still waiting on your response.
click here for bot help
from ansible-modules-extras.
@shane-walker, ping. This issue is still waiting on your response.
click here for bot help
from ansible-modules-extras.
@shane-walker, ping. This issue is still waiting on your response.
click here for bot help
from ansible-modules-extras.
@shane-walker, ping. This issue is still waiting on your response.
click here for bot help
from ansible-modules-extras.
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.
This issue was migrated to ansible/ansible#29195
from ansible-modules-extras.
Related Issues (20)
- win_updates Not working on localized Windows Server 2012R2 (russian) HOT 3
- Pushover Hostname api.pushover.net:443 doesn't match HOT 2
- ipa_user: fails with 'repsonse user_mod: no modifications to be performed' if sshpubkey is an empty list and user has no public keys in FreeIPA HOT 2
- ovirt_clusters fails with 'NoneType' object has no attribute 'policy' HOT 2
- locale_gen fails with python3 HOT 1
- Region eu-west-2 missing on ansible-2.2 ec2 module HOT 1
- kubernetes library module doesn't support `apis/extensions/v1beta1/` HOT 2
- customer GW module HOT 1
- composer: Unable to use "working-dir" with spaces HOT 1
- Add instance_type to ec2_remote_facts result HOT 1
- v HOT 1
- openvswitch_bridge ansible 2.3.0 HOT 1
- win_regedit - Not adding new reg entries HOT 1
- EFS Name is blank when created with ansible efs module HOT 1
- pexpect 4.0.1 Ansible variable issue HOT 1
- module vmware_vm_facts folder HOT 1
- installing npm mongodb error HOT 3
- Ovirt_vms module to support custom VM UUID HOT 1
- vmware vsphere_guest with drs HOT 1
- Getting "HTTP Error 504": HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from ansible-modules-extras.