Files
tldr/pages.zh/common/npm-view.md

32 lines
629 B
Markdown
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

# npm view
> 查看有关软件包的注册信息。
> 更多信息:<https://docs.npmjs.com/cli/commands/npm-view>。
- 查看软件包最新版本的信息:
`npm view {{package}}`
- 查看软件包特定版本的信息:
`npm view {{package}}@{{version}}`
- 查看软件包所有可用版本:
`npm view {{package}} versions`
- 查看软件包的描述:
`npm view {{package}} description`
- 查看软件包最新版本的依赖项:
`npm view {{package}} dependencies`
- 查看软件包的仓库 URL
`npm view {{package}} repository`
- 查看软件包的维护者:
`npm view {{package}} maintainers`