-
Notifications
You must be signed in to change notification settings - Fork 2.2k
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
Missing HTTP_NPM_SCOPE header when publishing #1968
Comments
I have no idea what |
Npm publish works fine. It is a header.
…On Fri, Mar 8, 2019 at 6:57 PM Daniel Stockman ***@***.***> wrote:
I have no idea what HTTP_NPM_SCOPE *is*. A header? An env var? Lerna uses
the same publish mechanism as npm itself (since v6.6.0), does npm publish
work with recent versions?
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
<#1968 (comment)>, or mute
the thread
<https://github.com/notifications/unsubscribe-auth/AA9pwfrvcQP2cevswucr0fSyAdFM-4WUks5vUxUSgaJpZM4bmJgz>
.
|
A |
I was looking for one, but nothing was produced. Is there a specific way to
generate one?
…On Fri, Mar 8, 2019 at 7:01 PM Daniel Stockman ***@***.***> wrote:
A lerna_debug.log from a failed publish would be appreciated.
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
<#1968 (comment)>, or mute
the thread
<https://github.com/notifications/unsubscribe-auth/AA9pwddKPEbjEpZskrRvMiBIGcmyjcGUks5vUxYIgaJpZM4bmJgz>
.
|
Hi! Armando from packagecloud checking in. After digging into this issue, it looks like what's happening is that Lerna is passing the full lerna/utils/npm-publish/npm-publish.js Line 34 in a7ad9b6
The official registry supports both From what I understand, this header is supposed to include just the I'm inclined to say that Lerna should only pass the We're also discussing how to handle this better at packagecloud. |
The docs for project-scope are kinda vague on exactly what they should be used for. I'm cool with passing |
We are attempting to do a lerna publish to packagecloud.io. The packagecloud.io API is failing with a 422 indicating that the NPM_SCOPE parameter is not set properly. After speaking with one of their engineers, they are expecting that the HTTP_NPM_SCOPE parameter be set properly, and in fact it is not being passed.
Expected Behavior
We are expecting that
lerna publish
will publish to packagecloud.io.Current Behavior
We are told that the
HTTP_NPM_SCOPE
parameter is not being set by lerna, when the publish is being called.Possible Solution
Can we add that as part of the publish?
Steps to Reproduce (for bugs)
lerna.json
lerna-debug.log
Context
We want to use lerna to publish and maintain a monorepo. We can't publish. Everything else works great, lerna version, lerna bootstrap, lerna list - but the publish doesn't work.
Your Environment
lerna --version
npm --version
yarn --version
node --version
The text was updated successfully, but these errors were encountered: