Getting Proxy Error in Appium Installation on MAC

I am getting below error while running the npm install -g appium command on MAC.

npm ERR! Darwin 14.1.0
npm ERR! argv “node” “/usr/local/bin/npm” “install” “-g” “appium”
npm ERR! node v0.12.0
npm ERR! npm v2.5.0
npm ERR! code ETIMEDOUT
npm ERR! errno ETIMEDOUT
npm ERR! syscall connect

npm ERR! network connect ETIMEDOUT
npm ERR! network This is most likely not a problem with npm itself
npm ERR! network and is related to network connectivity.
npm ERR! network In most cases you are behind a proxy or have bad network settings.
npm ERR! network
npm ERR! network If you are behind a proxy, please make sure that the
npm ERR! network ‘proxy’ config is set properly. See: ‘npm help config’

npm ERR! Please include the following file with any support request:
npm ERR! /Users/Paras/npm-debug.log