- Progressive Web Apps with React
- Scott Domes
- 132字
- 2021-07-08 09:36:15
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/.
推薦閱讀
- Expert C++
- Node.js 10實戰
- Visual FoxPro程序設計教程(第3版)
- JavaScript高效圖形編程
- Web Development with Django Cookbook
- Getting Started with SQL Server 2012 Cube Development
- bbPress Complete
- R Data Analysis Cookbook(Second Edition)
- Creating Mobile Apps with jQuery Mobile(Second Edition)
- Mastering React
- Mastering Backbone.js
- SQL 經典實例
- Microsoft 365 Certified Fundamentals MS-900 Exam Guide
- JavaScript+jQuery網頁特效設計任務驅動教程
- JQuery風暴:完美用戶體驗