sudo npm install -g deviceframe
npm WARN deprecated mkdirp@0.5.1: Legacy versions of mkdirp are no longer supported. Please update to mkdirp 1.x. (Note that the API surface has changed to use Promises in 1.x.)
npm WARN deprecated request@2.88.2: request has been deprecated, see https://github.com/request/request/issues/3142
npm WARN deprecated phantomjs-prebuilt@2.1.16: this package is now deprecated
/usr/bin/deviceframe -> /usr/lib/node_modules/deviceframe/cli.js
/usr/bin/dframe -> /usr/lib/node_modules/deviceframe/cli.js
> phantomjs-prebuilt@2.1.16 install /usr/lib/node_modules/deviceframe/node_modules/phantomjs-prebuilt
> node install.js
PhantomJS not found on PATH
Download already available at /tmp/phantomjs/phantomjs-2.1.1-linux-x86_64.tar.bz2
Verified checksum of previously downloaded file
Extracting tar contents (via spawned process)
Removing /usr/lib/node_modules/deviceframe/node_modules/phantomjs-prebuilt/lib/phantom
Copying extracted folder /tmp/phantomjs/phantomjs-2.1.1-linux-x86_64.tar.bz2-extract-1587160819519/phantomjs-2.1.1-linux-x86_64 -> /usr/lib/node_modules/deviceframe/node_modules/phantomjs-prebuilt/lib/phantom
Phantom installation failed [Error: EACCES: permission denied, link '/tmp/phantomjs/phantomjs-2.1.1-linux-x86_64.tar.bz2-extract-1587160819519/phantomjs-2.1.1-linux-x86_64' -> '/usr/lib/node_modules/deviceframe/node_modules/phantomjs-prebuilt/lib/phantom'] {
errno: -13,
code: 'EACCES',
syscall: 'link',
path: '/tmp/phantomjs/phantomjs-2.1.1-linux-x86_64.tar.bz2-extract-1587160819519/phantomjs-2.1.1-linux-x86_64',
dest: '/usr/lib/node_modules/deviceframe/node_modules/phantomjs-prebuilt/lib/phantom'
} Error: EACCES: permission denied, link '/tmp/phantomjs/phantomjs-2.1.1-linux-x86_64.tar.bz2-extract-1587160819519/phantomjs-2.1.1-linux-x86_64' -> '/usr/lib/node_modules/deviceframe/node_modules/phantomjs-prebuilt/lib/phantom'
npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! phantomjs-prebuilt@2.1.16 install: `node install.js`
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the phantomjs-prebuilt@2.1.16 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! /home/theapache64/.npm/_logs/2020-04-17T22_00_21_801Z-debug.log
NOTE: I am using Ubuntu 16.04