Linux command
npm-dist-tag 命令
文件
复制后可按需替换文件名、目录或参数。
常用示例
List tags for package
npm dist-tag ls [package-name]
Add tag to version
npm dist-tag add [package]@[version] [tag]
Remove tag
npm dist-tag rm [package] [tag]
说明
npm dist-tag manages distribution tags for packages. Tags like latest, next, or beta point to specific versions. Used to control what version npm install gets by default.
参数
- ls _package_
- List tags for package.
- add _pkg@version_ _tag_
- Add tag to version.
- rm _package_ _tag_
- Remove tag.
FAQ
What is the npm-dist-tag command used for?
npm dist-tag manages distribution tags for packages. Tags like latest, next, or beta point to specific versions. Used to control what version npm install gets by default.
How do I run a basic npm-dist-tag example?
Run `npm dist-tag ls [package-name]` in a terminal, then adjust file names, paths, flags, or remote targets for your system.
What does ls _package_ do in npm-dist-tag?
List tags for package.