The issue While trying to publish an NPM package to our artifacts registry in Azure DevOps, we got an error:
npm failed with return code: 4294963248
The exit code for the task was -4048. Strange thing is that we have our build agents running on-prem, but running this task locally on our dev machines worked just fine. We found out pretty quickly that it was an authentication issue. Because of this we thought that the npm publish task of Azure DevOps might have issues with getting the authentication right for the registry.