npm deprecate

弃用包的某个版本

概要

npm deprecate <package-spec> <message>

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

描述

此命令将更新包的 npm 注册表项,向所有尝试安装它的人提供弃用警告。

它适用于 版本范围 以及特定版本,因此您可以执行以下操作:

npm deprecate my-thing@"< 0.2.3" "critical bug fixed in v0.2.3"

传递给此命令的 SemVer 范围被解释为包含预发布版本。例如:

npm deprecate my-thing@1.x "1.x is no longer supported"

NMMm+H5Sb4QiNOlt8nyUvesfeMCJUcbQguGfohfEIGtQQf6+OyQcL2gGdGOeAXlgzc8UnjE/JkCA8alUvqmd2KknRYQhQ+NTzDhRRR8/53GYyL872V/06l2JEFzmgDJn

m1RtAMSphoOnj60DYbb3xYBwsvPn4qagw5pBHHtQUwLmeSOb/jSPidI+IA9/gaS1QOyObobkf3PHdnu7U5sIKPWUaviQ+LLv/ybVIQpJdkE5aAN0nOGCYgTLYL1IHbhsmsHK7NR/tcGUtXGRbFR7BSEHK2x3IC0Ly+mOEgixYeI=

EwB0GXJ/SNzt5AU7rvzmeKmEW5pgdqNi3OJvA50Oqc5WML2Bbw0Z9XeIDsSiJVxzZAvEGKaB2fezFYcWUNI4i8ftLSdElLWUcDI5McVb9+RA4az/Jy2a3SMHZdtwol0Asv+KsahmSRtchCzZ7gilpEHrmvREZyjGrKx8wjvkbG+dcNKlCfyXaGFz4n+5lOGnmTPx/6sen2dHhbZTGC8OSHyy9qonLvaBnhqg6zqtCTqhL1SO+a0TYpQJCigowWZS

配置

registry

    2x2PgnfhSfn+ndqCKDA2YZyJeE36zBrf4ZHt+yystWOhsODh/rQqgkPdeyq9/IJfZ2nEEORK61HMKUmmQgcXc+TJoPEvzZUMuFuPwI3K3ndnwW1Ep5xi2TV5ux1NCpopjnDWTLfA6VtpAVXIOntLn1G3khFY4yyXmyijKoZUmCY=

ntteVtuXzNUMJJqN2giN1kdXDE7PRobKQIqJ3InJZ/k=

otp

    2x2PgnfhSfn+ndqCKDA2YYaBbk622tFs1eTLUzfhcUvNwxpoff2+9EX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