Type: Change Request
Affects Version/s: 5.1.3
Fix Version/s: 5.3.0
Sprint:Leap 9, Leap 10
We have encountered several issues with npm "Set Me Up" page when using scoped packages:
1) The command: "npm config set @<SCOPE>:registry http://localhost:8081/artifactory/api/npm/npm" is missing the last slash.
It should be "npm config set @<SCOPE>:registry http://localhost:8081/artifactory/api/npm/npm/".
Without this, 'npm publish' will return this error:
npm ERR! code ENEEDAUTH
npm ERR! need auth auth required for publishing
npm ERR! need auth You need to authorize this machine using `npm adduser`
npm verb exit [ 1, true ]
After adding the last slash, the deploy works.
2) The example of the authentication details for scoped packages contain "http://"
This leads to an error.
When using the curl call, the correct details (without http://) is shown.