【发布时间】:2022-10-24 21:00:26
【问题描述】:
Installing NPM modules using NPM version 8.11.0
npm WARN config tmp This setting is no longer used. npm stores temporary files in a special
npm WARN config location in the cache, and they are managed by
npm WARN config [`cacache`](http://npm.im/cacache).
npm WARN config tmp This setting is no longer used. npm stores temporary files in a special
npm WARN config location in the cache, and they are managed by
npm WARN config [`cacache`](http://npm.im/cacache).
npm ERR! code ERESOLVE
npm ERR! ERESOLVE unable to resolve dependency tree
npm ERR!
npm ERR! While resolving: task-it-simple-web@0.0.0
npm ERR! Found: @angular/common@14.1.0
npm ERR! node_modules/@angular/common
npm ERR! @angular/common@"^14.1.0" from the root project
npm ERR!
npm ERR! Could not resolve dependency:
npm ERR! peer @angular/common@"9 - 13" from @fullcalendar/angular@5.11.0
npm ERR! node_modules/@fullcalendar/angular
npm ERR! @fullcalendar/angular@"^5.11.0" 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 /opt/buildhome/.npm/eresolve-report.txt for a full report.
npm ERR! A complete log of this run can be found in:
npm ERR! /opt/buildhome/.npm/_logs/2022-07-25T18_42_47_447Z-debug-0.log
Error during NPM install
Build was terminated: Build script returned non-zero exit code: 1
我搜索了这个问题。但是在任何地方我都能找到在npm install 上使用--force 的解决方案。但是我应该怎么做才能在 Netlify 上进行部署。
注意:我没有使用任何自定义 CI/CD。刚刚在 Netlify 中添加了分支以构建推送到分支。
【问题讨论】:
标签: angular fullcalendar netlify