Install Appium Driver From .tgz File

Hi Everyone
I’m trying to install appium driver from a tgz file which I generated by implementing my own appium driver and building it with node. Currently I can’t host it to Public NPM registry or anywhere else. I tried to use below commands to install directly got the below errors. If I extract that tgz file and then use --source local it works but I don’t want to extract it if I can manage to install it without extracting.

$ appium driver install --source local 0.24.0.tgz
✖ Installing '0.24.0.tgz' using NPM install spec '0.24.0.tgz'
Error: ✖ Encountered an error when installing package: Cannot find module '0.24.0.tgz/package.json'
Require stack:
- /Users/username/.appium/noop.js
$ appium driver install --source npm 0.24.0.tgz
✖ Installing '0.24.0.tgz' using NPM install spec '0.24.0.tgz'
Error: ✖ Encountered an error when installing package: Cannot find module '0.24.0.tgz/package.json'
Require stack:
- /Users/username/.appium/noop.js

Any help suggestion would really appreciated. Thanks in advance.

Unfortunately installing from archives is not supported and we don’t plan to add support for it as an archive must anyway be unpacked to work. You could also install your driver from a github repository as a possible alternative