项目的另一个开发者添加了新的依赖,你需要用到。 安装选项 安装一个包的单一版本:yarn install —flat只安装生产环境依赖:yarn install —production查看您可以传递给 yarn install 的 完整参数列表。