【问题标题】:Yarn vs npm, benefits on WSLYarn vs npm,WSL 的好处
【发布时间】:2017-05-05 23:34:57
【问题描述】:

在 Windows 上的 Ubuntu 上的 Bash 上使用 Yarn over npm 有什么好处吗?

我已经读到,由于 Windows 上的 Bash 如何与文件系统一起工作,并且 yarn 似乎与 Windows 上的 Bash 有问题,所以两者都慢了一点。想知道利弊是什么。

【问题讨论】:

  • 我发现 yarn 在 WSL 中比 npm 更稳定,稳定是指没有神秘挂起而没有明显错误。可能有更深层次的原因,但是当您有实际工作要做时,为什么还要花时间调试工具。

标签: windows bash ubuntu windows-subsystem-for-linux


【解决方案1】:

两者在 WSL 上都很棒,我最近改用 Yarn,现在它是我的首选。使用 apt-get 而不是 NPM 安装 Yarn as recommended by the Linux Install documentation 以绕过人们似乎遇到的许多问题。

如果您选择了 NVM 路线,您可以跳过 Node 安装:

sudo apt-get install --no-install-recommends yarn

【讨论】:

猜你喜欢
  • 2020-06-14
  • 2021-10-28
  • 1970-01-01
  • 2018-06-11
  • 2018-05-04
  • 1970-01-01
  • 1970-01-01
  • 2022-01-02
  • 2018-06-13
相关资源
最近更新 更多