【问题标题】:"peer @angular/common@"9 - 13" from @fullcalendar/angular@5.11.0" Error while deploying in Netlify\"peer @angular/common@\"9 - 13\" from @fullcalendar/angular@5.11.0\" 在 Netlify 中部署时出错
【发布时间】: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


    【解决方案1】:

    FullCalendar v5 目前支持 Angular 直到版本 13 (reference)

    所以,如果你真的需要FullCalendar,你可能需要降级 Angular 的版本。

    【讨论】:

    【解决方案2】:

    有关与 Angular V14 兼容的 Fullcalendar V6 Beta,请参阅 documentation

    【讨论】:

      猜你喜欢
      • 2022-12-19
      • 1970-01-01
      • 2019-11-20
      • 2018-01-01
      • 2019-12-28
      • 2021-12-19
      • 2019-01-12
      • 1970-01-01
      • 2021-01-19
      相关资源
      最近更新 更多