How to install Appium on Ubuntu Linux 17.10?

When I am trying to install appium on my Ubunt linux, I am getting following error

ashish@ashish-barot:~/appium/bin$ appium
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 (/home/linuxbrew/.linuxbrew/lib/node_modules/appium/node_modules/asyncbox/node_modules/source-map-support/source-map-support.js:118:21)
at mapSourcePosition (/home/linuxbrew/.linuxbrew/lib/node_modules/appium/node_modules/asyncbox/node_modules/source-map-support/source-map-support.js:140:21)
at wrapCallSite (/home/linuxbrew/.linuxbrew/lib/node_modules/appium/node_modules/asyncbox/node_modules/source-map-support/source-map-support.js:303:20)
at /home/linuxbrew/.linuxbrew/lib/node_modules/appium/node_modules/asyncbox/node_modules/source-map-support/source-map-support.js:338:26
at Array.map ()
at Function.prepareStackTrace (/home/linuxbrew/.linuxbrew/lib/node_modules/appium/node_modules/asyncbox/node_modules/source-map-support/source-map-support.js:337:24)
at process.emit (/home/linuxbrew/.linuxbrew/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)

Can anyone have any idea about this? Or any good URL / document to follow this installation.

Thank you in advance.

Regards,
Ashish Barot.

I am also facing same issue in Ubuntu 18.04 LTS while starting appium by following command

appium -a 127.0.0.1 -p 4723 –session-override -dc “{\”noReset\”: \”false\”}”

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 (/home/linuxbrew/.linuxbrew/lib/node_modules/appium/node_modules/asyncbox/node_modules/source-map-support/source-map-support.js:118:21)
at mapSourcePosition (/home/linuxbrew/.linuxbrew/lib/node_modules/appium/node_modules/asyncbox/node_modules/source-map-support/source-map-support.js:140:21)
at wrapCallSite (/home/linuxbrew/.linuxbrew/lib/node_modules/appium/node_modules/asyncbox/node_modules/source-map-support/source-map-support.js:303:20)
at /home/linuxbrew/.linuxbrew/lib/node_modules/appium/node_modules/asyncbox/node_modules/source-map-support/source-map-support.js:338:26
at Array.map ()
at Function.prepareStackTrace (/home/linuxbrew/.linuxbrew/lib/node_modules/appium/node_modules/asyncbox/node_modules/source-map-support/source-map-support.js:337:24)
at process.emit (/home/linuxbrew/.linuxbrew/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)

Already reported in https://github.com/appium/appium/issues/10609