-
-
Notifications
You must be signed in to change notification settings - Fork 511
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
Cannot publish npm package from release-it #697
Comments
Not sure why it fails. Could you please try with |
Same issue is here, release-it stopped updating package version in latest update |
Perhaps this option breaks release. I use "npm": false to bump tags, push to git, and then travis does build and publishes. |
@nurikk You are referring to the difference between |
By the way, from the output I saw there was a bug in the dry-run (some lines are basically empty), I've fixed that in the latest release. |
@webpro here is the result with debug output
|
@magicaltoast Maybe you're on a slow connection? Or you are using an alternative npm registry? I have no idea what code 243 means. Anyway, you have two options:
|
@webpro Same for me as well, started about the same time (Tuesday afternoon EST) as original post. For me it appeared randomly, It was not after updating version or anything. After it started failing I tried updating to newest version with the same result. The error message I get is slightly different:
That happens basically immediately on run not waiting on the timeout time. Running with the flags doesn't change anything. Based on all the above outputs seems to be issues talking to npm so I think we are all dealing with the same problem. If I'm wrong I apologize for piling on. I did confirm that if I manually run all the steps that release-it does and manually call The verbose log from the npm error file is below incase it helps. I'm not really sure what all to look for here, but im gonna play around with implementing a custom npm service copied from the built in one to see if i can figure out whats going on. Thanks!
|
@jchamb probably you somehow have Just for the record, with release-it/lib/plugin/npm/npm.js Lines 33 to 51 in d678b32
|
I face a similar issue using a private npm registry. It says Adding |
@artemtam This is a different issue, could you please open a new ticket for this? Thanks a lot. |
@webpro Just an update on my issue, you were correct that issue was purely the timeout option being undefined. My setup has a custom plugin setup that I extend off the npm plugin. Previously I was just adding a |
This is possibly related to #637. I only seem to run into this issue when using release-it against a private npm registry (we're using artifactory). |
@mkay581 Any chance you could reproduce the error with a |
Is this still relevant? If so, what is blocking it? Is there anything you can do to help move it forward? This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. |
the issue is an issue of npm in recent versions, the workaround for now is to use |
a dirty hack that works :
!! this is not the purpose of |
Is this still relevant? If so, what is blocking it? Is there anything you can do to help move it forward? This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. |
As mentioned in this comment i think a publishOptions could be useful
|
Thanks @dcharbonnier. Do you know of any resources that mention this? I.e. which version(s) of npm have this issue and/or in what circumstances? If I understand correctly, the |
I added the
|
@webpro I believe @dcharbonnier may have been referencing npm/cli#2525: a bug in npm where |
Great - thanks for clarifying this, @markcellus! |
Hi, when I try to manually publish the npm package everything works fine.
But when I execute the release-it command I get the following error:
ERROR Unable to reach npm registry (timed out after 10000ms).
release-it --dry-run give my this
The text was updated successfully, but these errors were encountered: