npm-undeprecate

取消弃用软件包的某个版本

选择命令行版本:

概要

¥Synopsis

npm undeprecate <package-spec>

注意:此命令对工作区无感知。

¥Note: This command is unaware of workspaces.

描述

¥Description

此命令将更新软件包的 npm 注册表项,删除当前存在的任何弃用警告。

¥This command will update the npm registry entry for a package, removing any deprecation warnings that currently exist.

它的工作方式与 npm deprecate 相同,只是此命令会删除弃用警告而不是添加它们。

¥It works in the same way as npm deprecate, except that this command removes deprecation warnings instead of adding them.

配置

¥Configuration

registry

npm 注册表的基本 URL。

¥The base URL of the npm registry.

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.

dry-run

  • 默认值:false

    ¥Default: false

  • 类型:布尔值

    ¥Type: Boolean

表示你不希望 npm 进行任何更改,并且它应该只报告它会做的事情。这可以传递到任何修改本地安装的命令中,例如 installupdatededupeuninstall 以及 packpublish

¥Indicates that you don't want npm to make any changes and that it should only report what it would have done. This can be passed into any of the commands that modify your local installation, eg, install, update, dedupe, uninstall, as well as pack and publish.

注意:其他网络相关命令不支持此功能,例如 dist-tagsowner 等。

¥Note: This is NOT honored by other network related commands, eg dist-tags, owner, etc.

也可以看看

¥See Also

npm 中文网 - 粤ICP备13048890号