NPM You cannot publish over the previously published versions

Error: While running the npm publish command you are getting the following issue:

npm ERR! code E403
npm ERR! 403 403 Forbidden - PUT - You cannot publish over the previously published versions.
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.

Problem: You are trying to publish the npm package with the same version which is already published.

Solution: Get the latest version which is published for the package from npm site and add an incremented version of the same in version property of package.json of your project, example:

{
  "name": "YourPackageName",
  "version": "1.0.1",