选择命令行版本:
🌐 Synopsis
npm star [<package-spec>...]
注意:此命令不支持工作区。
🌐 Note: This command is unaware of workspaces.
🌐 Description
给一个软件包“加星”意味着你对它有一些兴趣。这是一种模糊的积极方式,表明你在乎它。
这是一个布尔类型的东西。重复加星不会有额外效果。
🌐 It's a boolean thing. Starring repeatedly has no additional effect.
🌐 More
还有这些额外的命令可以帮助你管理你最喜欢的包:
🌐 There's also these extra commands to help you manage your favorite packages:
🌐 Unstar
你也可以使用 npm unstar 取消标记一个软件包
🌐 You can also "unstar" a package using npm unstar
“取消加星”也是同样的操作,只是方向相反。
🌐 Listing stars
你可以使用 npm stars 查看你所有标星的包
🌐 You can see all your starred packages using npm stars
🌐 Configuration
registrynpm 注册表的基本 URL。
🌐 The base URL of the npm registry.
unicodeLC_ALL、LC_CTYPE 或 LANG 环境变量定义。当设置为 true 时,npm 在树状输出中使用 Unicode 字符。当设置为 false 时,它使用 ASCII 字符而不是 Unicode 字符。
🌐 When set to true, npm uses unicode characters in the tree output. When false, it uses ascii characters instead of unicode glyphs.
otp这是来自双因素认证器的一次性密码。在使用 npm access 发布或更改软件包权限时需要此密码。
🌐 This is a one-time password from a two-factor authenticator. It's needed when publishing or changing package permissions with npm access.
如果未设置,并且注册表响应失败并询问一次性密码,npm 将在命令行上提示输入一次密码。
🌐 If not set, and a registry response fails with a challenge for a one-time password, npm will prompt on the command line for one.
🌐 See Also