-
Notifications
You must be signed in to change notification settings - Fork 2.3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
getNpmUsername prevents publish to private repo #1687
Comments
This is preventing the usage of Lerna 3.x in Create React App as well. |
I'm having this issue even after downgrading to 3.3.0. $ lerna publish --no-verify-access --no-verify-registry --registry=https://nexus.XXX/repository/npm-test/
info cli using local version of lerna
lerna notice cli v3.3.0
lerna info versioning independent
lerna info Verifying npm credentials
404 Not Found - GET https://nexus.XXX/repository/npm-test/-/whoami - Package '--whoami' not found
lerna ERR! EWHOAMI Authentication error. Use `npm whoami` to troubleshoot. |
@adanilev there is a second problem actually.
|
While we're waiting for a permanent fix, you can use yarn resolutions to solve this:
|
Huzzah!! Thanks so much @dlebedynskyi and @sarahatwork. Used yarn resolutions and it works a treat.
...and my package.json looks like:
|
having the similar issue with private npm repo in VSTS (Azure DevOps Artifacts)
edit:
|
@jbockle you also need to downgrade |
@panjiesw thanks that did the trick |
in our nexus repository /-/whoami is not implemented too. btw: |
@ibezkrovnyi whilst I'd say this is really a bug with the Nexus repository, instead of a bug with lerna |
While I agree that this feature is not implemented in Nexus, unfortunately Nexus works fine for us as private npm registry (including native Nexus JIRA for tracking: https://issues.sonatype.org/browse/NEXUS-13433 |
@ibezkrovnyi I think I have an idea.. could you share your local npm config? (I've never come across specifying a username before) Of course, censor any password/login credential |
Okay, I've dug into this further @ibezkrovnyi; This is no longer an issue as of lerna ˀ3.4.1`, please see this change: 06a9479#diff-56894a089f84980a542a859fbae4c47d In other words, update lerna, and you'll be able to publish to your nexus registry. |
Thanks for that, @ThisIsMissEm - will test latest Lerna tomorrow |
This bit me today on both 3.6.0 and 3.8.0. This doesn't appear to be resolved. |
@manchicken you'll have to give a bit more information: what command did you run, what third-party registry are you using, what was the error given, and what does your npm config look like? (Replace any sensitive values with ) |
I looked closer and it might be a problem with our nexus-with-npm install. Sorry for the false alarm. |
I'm getting this error again with lerna publish --conventional-commits -m 'chore(release): publish [ci skip]' --yes --ignore=lv --no-verify-access --no-verify-registry |
@lucasowens We need more details about the error, please. The |
Anyway, nevermind, gave up and skipped all the crap nexus and artifactory fail at. v3.8.4 |
Thank you @evocateur, v3.8.4 fixed my issue! |
This thread has been automatically locked because there has not been any recent activity after it was closed. Please open a new issue for related bugs. |
After 3.3.1 update
getNpmUsername
prevents publish to nexus private repoExpected Behavior
allow to by pass
getNpmUsername
check. with 3.3.3allowed to bypass
getNpmUsername
check.Current Behavior
Possible Solution
use
--no-verify-access
to disable getNpmUsername checkSteps to Reproduce (for bugs)
issue happens with nexus private repo. Not sure how to reproduce it otherwise.
Context
Had to revert to 3.3.0 for
@lerna/*
and deal withCurrent HEAD is already released, skipping change detection.
issues.Related issue on nexus project https://issues.sonatype.org/browse/NEXUS-13433
Your Environment
lerna --version
npm --version
yarn --version
node --version
The text was updated successfully, but these errors were encountered: