如何使用旧版对等部门部署应用程序?

Kir*_*and 1 google-app-engine dependencies dependency-management npm npm-install

因此,我的项目中有两个包存在相互冲突的对等依赖关系。其中一个部门仅支持react^16.14.0。

因此,我设法使用 使其在本地工作npm install --legacy-peer-deps,但是当我将项目部署到 Google Cloud App Engine 时如何使用此命令?App Engine 安装失败并显示 Could not resolve dependency.

Key*_*hah 10

.npmrc对我来说,我通过在项目的根目录中创建来实现此功能。并添加legacy-peer-deps=true到文件中。来源