Try test it checking the address of the repository if is not blocked on your network.
Always check settings:
npm config list
My settings behind a proxy:
npm config set registry http://registry.npmjs.org/
npm config set http-proxy http://username:password@ip:port
npm config set https-proxy http://username:password@ip:port
npm set strict-ssl false
https://github.com/npm/npm/issues/9401
npm install microtime –registry=http://r.cnpmjs.org –disturl=http://dist.cnpmjs.org