Hi Team,
I want to publish npm package on nexus 3. For which I have already created repositories. I am able to create user and roles and also added realm.
But still I am struggling with exact permission or role to grant user to publish the artifact on nexus.
npm publish
Error :
npm notice Publishing to https://xxxxxx/xxxxx-dev-repo
npm ERR! code E403
npm ERR! 403 403 Forbidden - PUT https://xxxxxx/repository/npm-xxxx-dev-repo/@test/test-app
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.
Tag creation is successful, but while associating the tag it throw below error
associateTag(
nexusInstanceId: 'n3dev',
tagName: n3tag,
search: [
[key: 'Component Name', value: n3tag],
[key: 'Component Group ', value: '@test'],
[key: ' Component Version', value:version ]
]
)
Error
Failing build due to: No components found
[Pipeline] echo
Exception: java.io.IOException: com.sonatype.nexus.api.exception.RepositoryManagerException: Associate tag was unsuccessful (404 response from server)
In case anyone has any idea on above mentioned both error please help…!!
Thanks in advance.