-
Notifications
You must be signed in to change notification settings - Fork 3.3k
New issue
Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? # to your account
[BUG] Failed to publish packages without repository field #2796
Labels
Comments
anru
added
Bug
thing that needs fixing
Needs Triage
needs review for next steps
Release 7.x
work is associated with a specific npm 7 release
labels
Mar 1, 2021
Bug is reproducible for v7.6.0 also |
anru
changed the title
[BUG] npm publish trying to execute ls-remote even in dry-run mode
[BUG] Failed to publish packages without repository field
Mar 30, 2021
Just had the same issue and resolved it by adding dot in front of directory:
This resolved the issue |
Well, it was working before without the dot. That's a weird thing. However, good that solution is found :) |
# for free
to join this conversation on GitHub.
Already have an account?
# to comment
Labels
Current Behavior:
npm publish path/to/pkg
command in monorepository executed for package withoutrepository
field trying to dogit ls-remote on ssh://git@github.com/path/to/pkg.git
and fails.Some in
--dry-run
modeExpected Behavior:
The success of the 'npm publish' command does not depend on the presence of a package in any DVCS.
At least some ENV variable to disable communication with DVCS would be nice.Steps To Reproduce:
package.json
with dead simple config{ "name": "test-pkg", "version": "0.0.1" }
npm publish --dry-run src/test-pkg
ornpm publish src/test-pkg
Environment:
OS: mac os 10.15.7
npm version is
The text was updated successfully, but these errors were encountered: