Skip to content
This repository was archived by the owner on Dec 15, 2022. It is now read-only.

docs: troubleshooting publishing issues #719

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
16 changes: 16 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -63,3 +63,19 @@ You can run `apm config get https-proxy` to verify it has been set correctly.
## Viewing configuration

You can also run `apm config list` to see all the custom config settings.

## Troubleshooting

If publishing a version fails with an error message like:

```
Preparing and tagging a new version ✓
Pushing v0.0.4 tag ✗
error: src refspec v0.0.4 does not match any.
error: failed to push some refs to '[email protected]:repo/pkg.git'
```

You have `git-tag-version` disabled in your `~/.npmrc` config file.
`apm` relies on `npm` tagging the GIT repos after versioning it.
To fix this, either remove `git-tag-version=false` on `~/.npmrc` or make a new
`.npmrc` file in your project's directory to override it with `git-tag-version=true`.