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

yarn upgrade-interactive

这与npm-check交互式更新模式类似。它提供了一种更新过时包的简单方法。

yarn upgrade-interactive [--latest]

upgrade-interactive命令采用与基础 upgrade命令相同的参数,并且其功能与基础命令相同。此命令将在执行任何升级之前显示过时的软件包,允许用户选择要升级的软件包。在package.json确定要升级的版本时,Yarn将尊重版本范围。

你可以把它yarn upgrade-interactive看作是yarn outdatedyarn upgrade [package...]命令的组合。在yarn outdated显示过期软件包列表yarn upgrade [package...]并可用于升级所需软件包的位置,yarn upgrade-interactive显示相同的过期软件包列表,并让您立即选择要升级的软件包。

--latest:该标志告诉Yarn忽略package.json指定的版本范围,并使用latest注册表中标记的版本。

代码语言:javascript
复制
[1/? Choose which packages to update. (Press <space> to select, <a> to toggle all, <i> to inverse s
election)
 devDependencies
?? autoprefixer      6.7.7  ?  7.0.0          https://github.com/postcss/autoprefixer#readme
 ? webpack           2.4.1  ?  2.5.1          https://github.com/webpack/webpack

 dependencies
 ? bull              2.2.6  ?  3.0.0-alpha.3  https://github.com/OptimalBits/bull#readme
 ? fs-extra          3.0.0  ?  3.0.1          https://github.com/jprichardson/node-fs-extra
 ? socket.io         1.7.3  ?  1.7.4          https://github.com/socketio/socket.io#readme
 ? socket.io-client  1.7.3  ?  1.7.4          https://github.com/Automattic/socket.io-client#readme

扫码关注腾讯云开发者

领取腾讯云代金券

http://www.vxiaotou.com