question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

unable to install appium@1.7.2

See original GitHub issue

The problem

when i run command like this:npm uninstall -g appium && npm install -g appium@1.7.2 --no-shrinkwrap

which throw this kind of exception:

36056 verbose stack Error: appium-chromedriver@3.1.4 install: node install-npm.js 36056 verbose stack spawn ENOENT 36056 verbose stack at ChildProcess.<anonymous> (/home/work/Monkey/node/lib/node_modules/npm/node_modules/npm-lifecycle/lib/spawn.js:48:18) 36056 verbose stack at emitTwo (events.js:126:13) 36056 verbose stack at ChildProcess.emit (events.js:214:7) 36056 verbose stack at maybeClose (internal/child_process.js:925:16) 36056 verbose stack at Process.ChildProcess._handle.onexit (internal/child_process.js:209:5) 36057 verbose pkgid appium-chromedriver@3.1.4 36058 verbose cwd /home/work/Monkey 36059 verbose Linux 3.10.0_1-0-0-8 36060 verbose argv “/home/work/Monkey/node/bin/node” “/home/work/Monkey/node/bin/npm” “install” “-g” “appium” 36061 verbose node v8.9.4 36062 verbose npm v5.6.0 36063 error file sh 36064 error code ELIFECYCLE 36065 error errno ENOENT 36066 error syscall spawn 36067 error appium-chromedriver@3.1.4 install: node install-npm.js 36067 error spawn ENOENT 36068 error Failed at the appium-chromedriver@3.1.4 install script. 36068 error This is probably not a problem with npm. There is likely additional logging output above. 36069 verbose exit [ 1, true ]

and i do not think this is same issue like #10020 #10225

and here is command line print : /home/work/node/bin/appium -> /home/work/node/lib/node_modules/appium/build/lib/main.js

appium-chromedriver@3.3.0 install /home/work/node/lib/node_modules/appium/node_modules/appium-chromedriver node install-npm.js

sh: node: command not found npm WARN optional SKIPPING OPTIONAL DEPENDENCY: fsevents@1.1.3 (node_modules/appium/node_modules/fsevents): npm WARN notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for fsevents@1.1.3: wanted {“os”:“darwin”,“arch”:“any”} (current: {“os”:“linux”,“arch”:“x64”})

npm ERR! file sh npm ERR! code ELIFECYCLE npm ERR! errno ENOENT npm ERR! syscall spawn npm ERR! appium-chromedriver@3.3.0 install: node install-npm.js npm ERR! spawn ENOENT npm ERR! npm ERR! Failed at the appium-chromedriver@3.3.0 install script. npm ERR! This is probably not a problem with npm. There is likely additional logging output above.

npm ERR! A complete log of this run can be found in: npm ERR! /root/.npm/_logs/2018-03-05T03_22_32_567Z-debug.log

Environment

  • Appium version (or git revision) that exhibits the issue:1.7.2
  • Last Appium version that did not exhibit the issue (if applicable):None
  • Desktop OS/version used to run Appium:Linux centos 6.5
  • Node.js version (unless using Appium.app|exe):v8.9.4
  • Mobile platform/version under test:
  • Real device or emulator/simulator:
  • Appium CLI or Appium.app|exe:

@imurchie @mykola-mokhnach @jlipps thanks for help

Issue Analytics

  • State:closed
  • Created 6 years ago
  • Comments:7 (1 by maintainers)

github_iconTop GitHub Comments

8reactions
wangtao169447commented, Mar 5, 2018

@mykola-mokhnach i success install appium by command below: npm install -g appium —unsafe-perm=true —allow-root

0reactions
lock[bot]commented, Aug 13, 2019

This thread has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Download and Install Appium 1.7.2 (updated)
Follow this step by step guide to download and install Appium 1.6.x. This article provides detailed steps to install Appium via npm ...
Read more >
Not able to install Appium 1.7 for window 7 version - Issues/Bugs
Hi All, please help i m not able to install Appium 1.7 version neither from any site.
Read more >
Unable to install appium from npm because of chrome driver ...
I have installed nodejs 8.11.1 in my system. Trying to install appium using below npm command. npm -g install appium.
Read more >
[Solved]-Node.js Appium install fail-node.js - appsloveworld
[Solved]-Node.js Appium install fail-node.js · Run that .exe file and install as per instructions. · Once installation is finished, Add bin folder of...
Read more >
appium - npm
appium. 1.7.2 • Public • Published 5 years ago ... At a minimum, you will need to be able to run Node.js 6+....
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found