显示一个包的信息。 yarn info [] 这个命令会拉取包的信息并返回为树格式,包不必安装到本地。 yarn info react yarn info vx . x . x { name : 'react' , version : '15.4.0-rc.2' , description : 'React i...
列出已安装的包。 yarn list yarn list yarn list 命令模仿 Unix 列目录命令的预期行为。 In Yarn, the list command lists all dependencies for the current working directory by referencing all package ma...
This is similar to npm-check interactive update mode. It provides an easy way to update outdated packages. yarn upgrade-interactive [—latest] upgrade-interactive 与 upgrade 命令采用...
为了跨机器安装得到一致的结果,Yarn 需要比你配置在 package.json 中的依赖列表更多的信息。 Yarn 需要准确存储每个安装的依赖是哪个版本。 为了做到这样,Yarn 使用一个你项目根目录里的 yarn.lock 文件。这些 “lockfile” 看起来像这样的: # THIS IS AN AUTOGENERATED FILE. DO ...