我正在运行以下命令在Heroku"git-push-Heroku master"上推送我的应用程序,但它返回:
-----> Installing binaries
engines.node (package.json): 16.13.2
engines.npm (package.json): 8.1.2
Resolving node version 16.13.2...
Downloading and installing node 16.13.2...
npm 8.1.2 already installed with node
-----> Installing dependencies
Installing node modules (package.json)
npm ERR! code ERESOLVE
npm ERR! ERESOLVE unable to resolve dependency tree
npm ERR!
npm ERR! While resolving: paper-kit-2-angular@1.4.0
npm ERR! Found: zone.js@0.11.3
npm ERR! node_modules/zone.js
npm ERR! zone.js@"0.11.3" from the root project
npm ERR!
npm ERR! Could not resolve dependency:
npm ERR! peer zone.js@"~0.10.3" from @angular/core@11.0.4
npm ERR! node_modules/@angular/core
npm ERR! @angular/core@"11.0.4" from the root project
npm ERR! peer @angular/core@"11.0.4" from @angular/common@11.0.4
npm ERR! node_modules/@angular/common
npm ERR! @angular/common@"11.0.4" from the root project
npm ERR!
npm ERR! Fix the upstream dependency conflict, or retry
npm ERR! this command with --force, or --legacy-peer-deps
npm ERR! to accept an incorrect (and potentially broken) dependency resolution.
npm ERR!
npm ERR! See /tmp/npmcache.GEG9a/eresolve-report.txt for a full report.
有人能帮我吗?
添加您的本地"节点";以及";npm";版本到package.json。例如我做的:
"engines": {
"node": "16.15.1",
"npm": "8.5.5"
},
显然对我来说;knex";我使用的模块与较新的npm不兼容(我不确定(。