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.
我正在开发一个 node.js (Nestjs) 项目并使用 Yarn 而不是 NPM 进行包管理。
我有一个简单的问题要问,强制 yarn 只安装的命令是什么devDependencies?我在这里检查了文档,但无法确定是否有一个选项。
devDependencies
要安装 dev 依赖项,您可以按照上面的示例运行带有“--dev”标志的命令:
yarn add {package name} --dev
目前无法单独安装所有依赖项。