I'm receiving the following error in npm when I run the "npm install -g appium" in OSX terminal
npm ERR! Darwin 16.0.0
npm ERR! argv "/usr/local/Cellar/node/7.2.0/bin/node" "/Users/myUsername/.npm-packages/bin/npm" "install" "-g" "appium"
npm ERR! node v7.2.0
npm ERR! npm v4.0.2
npm ERR! Cannot read property 'deep-extend' of undefined
npm ERR!
npm ERR! If you need help, you may report this error at:
npm ERR! https://github.com/npm/npm/issues
npm ERR! Darwin 16.0.0
npm ERR! argv "/usr/local/Cellar/node/7.2.0/bin/node" "/Users/myUsername/.npm-packages/bin/npm" "install" "-g" "appium"
npm ERR! node v7.2.0
npm ERR! npm v4.0.2
npm ERR! Cannot read property 'extsprintf' of undefined
npm ERR!
npm ERR! If you need help, you may report this error at:
npm ERR! https://github.com/npm/npm/issues
Can anyone help me out of this?