Can't install gulp

Hi, I am trying to install gulp on a existing project. It’s showing the the following error.
npm install -g gulp@3.8.8

npm ERR! Windows_NT 6.3.9600
npm ERR! argv "C:\\Program Files\\nodejs\\\\node.exe" "C:\\Program Files\\nodejs
\\node_modules\\npm\\bin\\npm-cli.js" "install" "-g" "gulp@3.8.8"
npm ERR! node v0.12.0
npm ERR! npm  v2.5.1
npm ERR! code ENOTFOUND
npm ERR! errno ENOTFOUND
npm ERR! syscall getaddrinfo

npm ERR! network getaddrinfo ENOTFOUND regsitry.npmjs.org
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!     E:\IONIC\ionicSamples\myIonicApp-app\npm-debug.log

I tried to solve the problem in many different ways, but it’s not working. Last time I tried with earlier version install but no hope again. Can you help me please?

i think the error message says everythink.

npm can not connect to its registry.
Maybe that occurs because ionic cli creates a proxy around the app?

Yes, I found later that “npm install” for anything is not working too.

I solved the problem by by running this command

npm config set registry http://registry.npmjs.org/