目录
选择命令行版本:
目录
概要
¥Synopsis
npm star [<package-spec>...]
注意:此命令对工作区无感知。
¥Note: This command is unaware of workspaces.
描述
¥Description
"关注" 一个包意味着你对它有一些兴趣。这是一种模糊的积极方式来表明你在乎。
¥"Starring" a package means that you have some interest in it. It's a vaguely positive way to show that you care.
这是一个布尔值。反复主演没有额外的效果。
¥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
"unstar" 一个包
¥You can also "unstar" a package using npm unstar
"取消关注" 是同样的东西,但相反。
¥"Unstarring" is the same thing, but in reverse.
列出关注
¥Listing stars
你可以使用 npm stars
查看所有已加星标的包
¥You can see all your starred packages using npm stars
配置
¥Configuration
registry
-
默认值:"https://registry.npmjs.org/"
¥Default: "https://registry.npmjs.org/"
-
类型:URL
¥Type: URL
npm 注册表的基本 URL。
¥The base URL of the npm registry.
unicode
-
默认值:在 Windows 上为 false,在具有 unicode 区域设置的 mac/unix 系统上为 true,如
LC_ALL
、LC_CTYPE
或LANG
环境变量所定义。¥Default: false on windows, true on mac/unix systems with a unicode locale, as defined by the
LC_ALL
,LC_CTYPE
, orLANG
environment variables. -
类型:布尔值
¥Type: Boolean
当设置为 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
-
默认值:null
¥Default: null
-
类型:空值或字符串
¥Type: null or String
这是来自双重身份验证器的一次性密码。使用 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