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

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/.

主站蜘蛛池模板: 大悟县| 宜春市| 西城区| 江陵县| 曲沃县| 星座| 昔阳县| 公安县| 东宁县| 青田县| 汽车| 政和县| 若羌县| 军事| 龙陵县| 盐山县| 西藏| 原阳县| 沭阳县| 古浪县| 公主岭市| 湘潭县| 泽库县| 玉龙| 固镇县| 南岸区| 尉犁县| 溧阳市| 敖汉旗| 铜川市| 庆阳市| 齐齐哈尔市| 花莲市| 海宁市| 沅陵县| 朝阳区| 睢宁县| 桑植县| 方正县| 元朗区| 冀州市|