Install appium thru npm without internet connection

my machine has no internet connect. I have tried installed appium desktop version but error compatibility with adb , error like cannot kill adb server.

i am thinking to try appium command line version.
I have npm installed but no internet connection to direct download appium over internet when running command ‘npm install -g appium’.

how do i proceed to install command version of appium?