Publish failed when using 3.1.0 not 3.0.4
Closed this issue · 3 comments
jdziat commented
When using a privately hosted repository and i go to publish using the 3.1.0 version it fails with a 403 response. However using the 3.0.4 works as expected. The below is all that is displayed.
np patch
✖ Response code 403 (Forbidden)
jdziat commented
Fails because of the npm name check module.
Changing the below within cli.js fixed it for me:
--skip-name-check Skip validating the name check
skipNameCheck: {
type: 'boolean',
default: false
},
const isAvailable = cli.flags.skipNameCheck ? true : await npmName(pkg.name)
sindresorhus commented
How are you hosting it privately? Are you using a scoped package or normal package name?
I would prefer to find a way to resolve this without adding yet another flag.
jdziat commented
Just with a verdaccio instance and it's a normal package name.