400 bad request when logging/pushing npm package to nexus?
{ ..., "publishConfig": { "registry": "<linkToNexusRepo>" }}
Resolve the issue for me by adding this snipped in my package.json
.
Make sure you have selected the correct format and type for the repository. In my case I accidentally created the npm repository with the incorrect format.
I created a Format: nuget
instead of Format: npm
.
You can see the format when you select the repository in the Nexus dashboard.