npm config set registry http://registry.npmjs.org/ --global this worked for us.
npm config set registry http://registry.npmjs.org/ --global