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.

Not able to launch appium after upgrade node 10.0.0

See original GitHub issue

The problem

Appium is not being launched after node upgrade to 10.0.0

Environment

  • Appium version (or git revision) that exhibits the issue: 1.8.0
  • Last Appium version that did not exhibit the issue (if applicable):
  • Desktop OS/version used to run Appium: High sierra 10.13.4 (17E199)
  • Node.js version (unless using Appium.app|exe): 10.0.0
  • Mobile platform/version under test: Not required
  • Real device or emulator/simulator: Not required
  • Appium CLI or Appium.app|exe: Not Required

Details

Appium 1.8.0 was working fine with older version of node, but after upgrade node to recent one (10.0.0), unable to launch appium.

Link to Appium logs

Please fine below appium logs.

internal/util.js:360
    const filename = frame.getFileName();
                           ^

TypeError: frame.getFileName is not a function
    at isInsideNodeModules (internal/util.js:360:28)
    at showFlaggedDeprecation (buffer.js:149:8)
    at new Buffer (buffer.js:174:3)
    at retrieveSourceMap (/usr/local/lib/node_modules/appium/node_modules/asyncbox/node_modules/source-map-support/source-map-support.js:118:21)
    at mapSourcePosition (/usr/local/lib/node_modules/appium/node_modules/asyncbox/node_modules/source-map-support/source-map-support.js:140:21)
    at wrapCallSite (/usr/local/lib/node_modules/appium/node_modules/asyncbox/node_modules/source-map-support/source-map-support.js:303:20)
    at /usr/local/lib/node_modules/appium/node_modules/asyncbox/node_modules/source-map-support/source-map-support.js:338:26
    at Array.map (<anonymous>)
    at Function.prepareStackTrace (/usr/local/lib/node_modules/appium/node_modules/asyncbox/node_modules/source-map-support/source-map-support.js:337:24)
    at process.emit (/usr/local/lib/node_modules/appium/node_modules/asyncbox/node_modules/source-map-support/source-map-support.js:387:52)
    at process._fatalException (internal/bootstrap/node.js:435:27)

Code To Reproduce Issue [ Good To Have ]

  • Upgrade node to latest one (10.0.0)

  • Launch appium

It working fine after downgrading node version.

Issue Analytics

  • State:closed
  • Created 5 years ago
  • Reactions:9
  • Comments:20 (3 by maintainers)

github_iconTop GitHub Comments

5reactions
imurchiecommented, Apr 30, 2018

Yes. As it stands, this WILL NOT WORK. The latest Appium was released before Node 10 was released. We are working on getting it working.

4reactions
priyankshah217commented, Apr 27, 2018

@PaulysGitHub , Do this in order to restore old node version. Even I faced the same issue, downgrade node version by

  • Uninstall node brew uninstall node

  • Install node lower version of node brew install node@8

  • Do force link to node 8 brew link --overwrite node@8 --force

It will work.

Other than you can nvm to restore old version, and ensure that you need to reinstall appium.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Upgrading Node.js to latest version - Stack Overflow
Just go to nodejs.org and use the latest installer. · 2. I had to run choco install nodejs. · Make sure to run...
Read more >
Appium Beginner Tutorial 3 | How to install appium on Windows
FREE Courses - https://automationstepbystep.com/Today we will learn:1. How to install appium with node.js2. How to install appium with with ...
Read more >
Unable to start application on this device: an unknown server ...
I'm not using NPM itself, since the install route for npm install -g appium@1.8.1 doesn't work on that or any other version of...
Read more >
Running Appium from Source
Appium is written in JavaScript, and run with the Node.js engine. ... At this point, you will be able to start the Appium...
Read more >
Release Notes - Ranorex
Ranorex 10.5.1 Release (December 6, 2022). Bugs. Ranorex now upgrades successfully to 10.1.4. Ranorex Remote Agent no longer uses the Runtime Floating ...
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