npm install --registry http://registry.npmjs.org packagename
This will update your .npmrc to include the following line registry = http://registry.npmjs.eu/
npm config set registry http://registry.npmjs.eu
npm publish --registry http://registry.nodejs.org
"publishConfig": {
"registry":"http://registry.npmjs.org/"
}
given EU registry doesn't work anymore. Please check details visiting url: http://registry.npmjs.eu