How to Install Appium 1.6.3 Offline

I need to install appium in my build server (Mac) which is not connected to internet (Connected but no access to github or npm). So the only way i can do it is to get all the necessary packages downloaded and then upload it to the server. Is there any way i can achieve it offline?