npm uninstall

删除一个包

概要

npm uninstall [<@scope>/]<pkg>[@<version>]... [-S|--save|-D|--save-dev|-O|--save-optional|--no-save]

aliases: remove, rm, r, un, unlink

描述

这将卸载一个包,完全删除代表它安装的所有 npm。

例子:

npm uninstall sax

在全局模式下(即,将 -g--global 附加到命令中),它将当前包上下文作为全局包卸载。

npm uninstall 采用 3 个专有的可选标志,用于保存或更新主 package.json 中的包版本:

    YZSsiulh5yorNgxPr68GTIK+g7vgbX/XWWdrkqOrCemCgLPO//QM3coWnIhGtUBdY5Gab0TnQ3+44NtZNCcVc8Ruy6Zf2474/h1t0fXZ/paT5AttMgeLBwgMB1Ug2JCF3ZAAXuq2pJYfINBiFIj9L5U8c1D0EHJRCkxaaGoBwTByp52en1GKA+YF9wcxQylkiNEodKgJj21aSFBuLbh+IGXPA28tLRuAoUqxhMSDguPyjzENso/nAO1oM45tv4G6FbhPdhrXzAL4ME2M6Bv2FOEeqJZk5wzYyutHSZ/7isTQlQ3QUp+mEUOagUnVKRGWJnIICiayNCBANCxMghNedAFAMWW7ISPrwet1KnTyGDHyPxahalKZEsfdjImMVuWmSq0Y6ZO8pN1M3Za2uv3F8uS3Hq2EGRT/rG7O6oxB5jflxmmjDjGRnm5JUWCw2FldrClXs9ZLNfeTFdoVkorBsPKP+R0GjsqX3XcyFRGF5pQ0IQ1YnAb60e0IfUW3Cpqz0xyg1OH/cbfjC5vBUuR9uusYaUjBcrURmI2aPQIZJdP6SkfhX3boOP0LldYYRY6A

IS0AkBUTWO/KzIudoFR8R7M+fr73SaFtUUbYAzZgZtvgs+qRJOFirWCL7elKA75S4vE7Dm6qr5RLcNM3Op1aINymJYG+CSje8Tm8W+24PSUOtg1NyV9fr+5OmG+2bwNu

cFhDuMY6INguntVVwCoutylz/k4GZo2ginVjmIJfkbx2DrO+gaa80d+itctSFAB/FCWQL4zup0xexHJNmtydVBfyjinPhnTCIApLcKdB26acEz3QEPklTGQB8EqMBvji/ZxUH1UAok55ZMJKI1CtXfwx/wx+VFGGlKUPdHp0s+A=

ag5XKNWoMdnHJ0JPVIP9eQ==

npm uninstall sax --save
npm uninstall @myorg/privatepackage --save
npm uninstall node-tap --save-dev
npm uninstall dtrace-provider --save-optional
npm uninstall lodash --no-save