I am trying to publish the package using npm publish command. but I am getting this error every time.
npm ERR! code E403
npm ERR! 403 Forbidden - PUT https://registryname - forbidden
I have
"publishConfig": {
"registry": "https://registryname"
}
and in .npmrc
registry=https://registryname
I have tried many solutions but no luck.
Do you have an account? You can;
npm whoami
npm login
. Follow the login prompt.