--save"相当于什么?-6ren"> --save"相当于什么?-我正在使用Yarn安装我的项目的依赖项。在 Yarn 中,相当于“npm install --save ”来更新我的 package.json 文件中的条目?我可以在这里使用“npm install -6ren">
gpt4 book ai didi

npm - Yarn 中的 "npm install --save"相当于什么?

转载 作者:行者123 更新时间:2023-12-02 14:20:21 25 4
gpt4 key购买 nike

我正在使用Yarn安装我的项目的依赖项。在 Yarn 中,相当于“npm install --save ”来更新我的 package.json 文件中的条目?我可以在这里使用“npm install --save”,但我想尽可能多地使用 Yarn 来提高性能并避免 npm 和 Yarn 之间的混淆。

最佳答案

相当于 npm install <name> --save 的 yarn 是:

yarn add <name>

Here's the link to the docsnpm 相比的完整命令列表.

关于npm - Yarn 中的 "npm install <package_name> --save"相当于什么?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/40134390/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com