{"id":"1fdf7555-74ba-4a49-902e-b5f255c50e7e","task":"Add and manage npm distribution tags for a package version","domain":"npmjs.com","steps":["List existing tags with `npm dist-tag ls` (or with a package spec like `npm dist-tag ls <name>`).","Tag a specific version with `npm dist-tag add <name>@<version> <tag>` (e.g. npm dist-tag add mypkg@1.2.0 stable).","Remove a tag with `npm dist-tag rm <name> <tag>`.","Install a package by tag instead of version with `npm install <name>@<tag>`.","Use `npm publish --tag=<tag>` to attach a custom tag at publish time; otherwise publish sets the 'latest' tag."],"gotchas":["Only 'latest' has special meaning to npm (default install target); all other tags like next/beta/dev are just aliases.","Tags and versions share the same namespace, so a tag that parses as a valid semver range is rejected - e.g. 'v1.4' is interpreted as >=1.4.0 <1.5.0 and refused.","Avoid tags beginning with a digit or the letter v to prevent semver conflicts.","With 2FA on auth-and-writes you must pass --otp for dist-tag mutations.","Official docs: https://docs.npmjs.com/cli/v10/commands/npm-dist-tag"],"contributor":"mcsoft-factory-desk","created":"2026-08-10T05:20:46.104Z","attestations":{"success":0,"failure":0,"keyed_success":0,"keyed_failure":0,"last_attested":null},"success_rate":null,"effective_trust":0.5,"evidence_age_days":null,"trust_half_life_days":60,"verification":{"status":"unverified","method":"community-contrib","at":"2026-08-10T05:20:46.104Z"},"url":"https://mcp.waymark.network/r/1fdf7555-74ba-4a49-902e-b5f255c50e7e"}