npm 403 Forbidden – PUT You do not have permission to publish

Error:

npm ERR! code E403
npm ERR! 403 403 Forbidden - PUT https://registry.npmjs.org/ You do not have permission to publish ... Are you logged in as the correct user?
npm ERR! 403 In most cases, you or one of your dependencies are requesting
npm ERR! 403 a package version that is forbidden by your security policy, or
npm ERR! 403 on a server you do not have access to.

Solution:

For the first time users the error could be because you have not verified the email registered in npm account.

Second, reason could be that the package name which you are trying to push is already taken. You need to enter a unique package name in “name” field of your package.json.