所以我的專案中有兩個包有沖突的對等依賴。其中一個部門僅支持 react^16.14.0。
因此,我設法通過使用使其在本地作業npm install --legacy-peer-deps,但是當我將專案部署到 Google Cloud App Engine 時如何使用此命令?App Engine 安裝失敗 Could not resolve dependency.
uj5u.com熱心網友回復:
對我來說,我通過.npmrc在專案的根目錄中創建來完成這項作業。并添加legacy-peer-deps=true到檔案中。資源
轉載請註明出處,本文鏈接:https://www.uj5u.com/gongcheng/516630.html
標籤:Google Cloud Collective 谷歌应用引擎npm依赖关系npm-安装依赖管理
