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

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

主站蜘蛛池模板: 西和县| 海丰县| 日喀则市| 宁陵县| 志丹县| 高平市| 余姚市| 保康县| 措勤县| 正宁县| 盖州市| 上蔡县| 咸阳市| 安龙县| 大荔县| 萨迦县| 佛冈县| 盐边县| 安多县| 霍州市| 万荣县| 卢龙县| 普洱| 白朗县| 资源县| 永吉县| 巴楚县| 仙桃市| 邯郸县| 三台县| 宝山区| 临猗县| 措勤县| 浠水县| 香港 | 吴忠市| 郯城县| 济源市| 麻栗坡县| 呼玛县| 兴义市|