非常教程

Yarn参考手册

CLI

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注册表中标记的版本。

[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
Yarn

Apache Hadoop YARN (Yet Another Resource Negotiator,另一种资源协调者)是一种新的 Hadoop 资源管理器,它是一个通用资源管理系统,可为上层应用提供统一的资源管理和调度,它的引入为集群在利用率、资源统一管理和数据共享等方面带来了巨大好处。

主页 https://yarnpkg.com/
源码 https://github.com/yarnpkg/yarn
发布版本 1.3.2

Yarn目录