pnpm remove
Aliases: rm
, uninstall
, un
Removes packages from node_modules
and from the project's package.json
.
配置项
--recursive, -r
When used inside a workspace, removes a dependency (or dependencies) from every workspace package.
当不在工作区内使用时,将删除相关依赖项 (或多个依赖), 也包含子目录中对应的包 。
--global, -g
从全局删除一个依赖包。
--save-dev, -D
Only remove the dependency from devDependencies
.
--save-optional, -O
Only remove the dependency from optionalDependencies
.
--save-prod, -P
Only remove the dependency from dependencies
.