{"action":"opened","issue":{"url":"https://api.github.com/repos/npm/npm/issues/12304","repository_url":"https://api.github.com/repos/npm/npm","labels_url":"https://api.github.com/repos/npm/npm/issues/12304/labels{/name}","comments_url":"https://api.github.com/repos/npm/npm/issues/12304/comments","events_url":"https://api.github.com/repos/npm/npm/issues/12304/events","html_url":"https://github.com/npm/npm/issues/12304","id":147314467,"number":12304,"title":"Bug when a package has no dist-tags","user":{"login":"jameslnewell","id":2237996,"avatar_url":"https://avatars.githubusercontent.com/u/2237996?v=3","gravatar_id":"","url":"https://api.github.com/users/jameslnewell","html_url":"https://github.com/jameslnewell","followers_url":"https://api.github.com/users/jameslnewell/followers","following_url":"https://api.github.com/users/jameslnewell/following{/other_user}","gists_url":"https://api.github.com/users/jameslnewell/gists{/gist_id}","starred_url":"https://api.github.com/users/jameslnewell/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jameslnewell/subscriptions","organizations_url":"https://api.github.com/users/jameslnewell/orgs","repos_url":"https://api.github.com/users/jameslnewell/repos","events_url":"https://api.github.com/users/jameslnewell/events{/privacy}","received_events_url":"https://api.github.com/users/jameslnewell/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2016-04-11T04:37:08Z","updated_at":"2016-04-11T04:37:08Z","closed_at":null,"body":"I did `npm publish --dist-tag=next` which mistakenly took the `latest` tag instead of using `next` (it's `--tag` d'oh!). I then `npm dist-tag rm <package>@<alpha-version> latest` and tried to `npm dist-tag add <package>@<latest-version>`.\r\n\r\nNPM complained with `No dist-tags found for <package>`... I ended up having to publish a new version just to be able to change the tags."}}