Yarn -- Fast, reliable, and secure dependency management for JavaScript.
发布于 8 年前 作者 xwartz 3977 次浏览 来自 分享

github: https://github.com/yarnpkg/yarn

Features

  • Offline Mode: If you’ve installed a package before, you can install it again without any internet connection.
  • Deterministic: The same dependencies will be installed the same exact way across every machine regardless of install order.
  • Network Performance: Yarn efficiently queues up requests and avoids request waterfalls in order to maximize network utilization.
  • Multiple Registries: Install any package from either npm or Bower and keep your package workflow the same.
  • Network Resilience: A single request failing won’t cause an install to fail. Requests are retried upon failure.
  • Flat Mode: Resolve mismatching versions of dependencies to a single version to avoid creating duplicates.
  • More emojis. 🐈

感觉可以替代掉 npm 了

6 回复

看起来不错

yarn add 主要来自 npm registry,yarn publish 还是发布到 npm registry。准确说应该是想取代 npm cli

@hxh1246996371 嗯,确实。

一早起来被 yarn 刷屏了,群里的小伙伴表示速度很慢, 于是决定看看如何配置成 cnpm 的源,果断先占坑,晚上再看如何配置

https://github.com/cyarnpkg/cyarncyarnpkg.comhttps://www.npmjs.com/package/cyarn

不错,赶紧试试

@xcatliu 卧槽 还是你快

回到顶部