Unable to install Appium 1.6.3 on Ubuntu 16.04

Hello, I am trying to install the latest version of appium from a working version of 1.5.3, but unfortunately I am unable to install without getting an error. I’m trying to build this using docker which has ubuntu 16.04 as a base. Please advise!

Error received:

[email protected] install /usr/local/lib/node_modules/appium/node_modules/sqlite3
node-pre-gyp install --fallback-to-build

The command '/bin/sh -c npm install -g [email protected] returned a non-zero code: 1

Commands being run (I removed the docker run portions to make things more generic):

  • apt-get -qqy --no-install-recommends install nodejs
  • apt-get -qqy --no-install-recommends install npm
  • ln -s /usr/bin/nodejs /usr/bin/node
  • npm install -g [email protected]