Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我应该使用什么来安装 react-native 依赖项?yarn 或 npm,在我的情况下,npm 在某些依赖项方面存在一些问题。有时我使用 npm 来安装这些,但我仍然对决定永久使用哪一个感到困惑。
NPM 和 Yarn 都是管理项目依赖项的好工具。从更快的速度和更强的安全性来看,Yarn 比 npm 有很多改进。许多人说,如果你已经熟悉 NPM,那么就不需要跳转到 Yarn,尤其是在第 5 版发布的情况下。我个人更喜欢 Yarn 而不是 NPM,主要是因为它的速度。但这一切都归结为偏好问题。
参考
yarn 比 npm 快得多。此外,npm 也是一个令人印象深刻的选择