官术网_书友最值得收藏!

The dark side of npm

In the past year, npm has come under fire for various reasons.

  • It can be slow (just try installing large packages over a poor Wi-Fi connection)
  • Its installation process can lead to different results for different developers on the same project
  • It doesn't work offline, even if you've downloaded the package before

In response to these issues, Facebook came out with a package manager called Yarn. Yarn is essentially a wrapper around npm, giving the same basic functionality with an extra layer of goodness. Let's go ahead and install it so that we can use it to manage our packages!

Visit https://yarnpkg.com/en/docs/install for installation instructions. For macOS, note that you'll need Homebrew (which is like npm for macOS packages--packages everywhere!), which you can get at https://brew.sh/.

主站蜘蛛池模板: 锦屏县| 古田县| 海伦市| 博爱县| 沛县| 喀喇| 灵川县| 新津县| 龙江县| 马龙县| 自贡市| 阳曲县| 云龙县| 宜黄县| 翁牛特旗| 思茅市| 乌海市| 绥芬河市| 苍梧县| 马尔康县| 江源县| 弥渡县| 通许县| 张家川| 阳新县| 乐亭县| 寿宁县| 揭阳市| 彩票| 海宁市| 鄂州市| 临海市| 阜新| 延长县| 黔南| 西和县| 丰镇市| 嘉禾县| 太康县| 东丽区| 安康市|