pnpm star

将软件包标记为注册源中的收藏。你必须登录(见 pnpm login)。 Without credentials, star and unstar fail with ERR_PNPM_STAR_UNAUTHORIZED, and stars fails with ERR_PNPM_STARS_UNAUTHORIZED. An unknown package fails with ERR_PNPM_PACKAGE_NOT_FOUND.

pnpm star <pkg>

pnpm unstar#

从你的收藏中删除一个软件包。

pnpm unstar <pkg>

pnpm stars#

列出你(或其他用户)收藏的软件包。

pnpm stars [<user>]

当不输入用户名运行时,pnpm 会列出当前已认证用户收藏的软件包。

配置项#

--registry <url>#

The registry to use. 默认使用已配置的默认注册源。 star, unstar, and stars all accept it.