首页
学习
活动
专区
工具
TVP
发布
精选内容/技术社群/优惠产品,尽在小程序
立即前往

yarn remove

yarn remove <package...>

正在运行yarn remove foo将删除您的直接依赖项中指定的程序包foo,用于更新过程中的文件package.jsonyarn.lock文件。

其他开发该项目的开发人员可以运行yarn install同步他们自己的node_modules目录和更新后的一组依赖项。

当你删除一个包时,它是从所有类型的依赖关系删除dependenciesdevDependencies等。

Note: yarn remove will always update your package.json and yarn.lock. This ensures that different developers on the same project get the same set of dependencies. It is not possible to disable this behavior. Note: yarn remove <package> --<flag> uses the same flags as yarn install command.

扫码关注腾讯云开发者

领取腾讯云代金券

http://www.vxiaotou.com