我在我的Ionic Angular应用程序中安装日历时遇到了问题。

huangapple go评论78阅读模式
英文:

I have a problem with installing the calendar in my ionic angular app

问题

相当容易。我需要创建一个项目;编写一个日历/日程应用程序,该应用程序显示(并且可以编辑)我所在学院教授的日程安排/分配,直到每日视图。

第一个问题,你有比我更好的想法、方法或软件来编写它吗?

第二:

  • 我通过 "ionic start scheduleapp blank" 安装了一个新的 Ionic 应用程序。
  • 选择了 Angular。
  • 切换到文件夹。
  • 运行 "npm i angular-calendar angular-calendar-week-hours-view @angular/animations"。

在这里,我已经遇到了以下错误:

npm ERR! code ERESOLVE
npm ERR! ERESOLVE unable to resolve dependency tree
npm ER*your text*R!
npm ERR! While resolving: sched@0.0.1
npm ERR! Found: @angular/core@15.2.0
npm ERR! node_modules/@angular/core
npm ERR!   @angular/core@"^15.0.0" from the root project
npm ERR!
npm ERR! Could not resolve dependency:
npm ERR! peer @angular/core@"6.1.10" from @angular/animations@6.1.10
npm ERR! node_modules/@angular/animations
npm ERR!   @angular/animations@"*" from the root project
npm ERR!   peer @angular/animations@">=5.0.0 <7.0.0" from angular-calendar@0.23.7
npm ERR!   node_modules/angular-calendar
npm ERR!     angular-calendar@"*" from the root project
npm ERR!     1 more (angular-calendar-week-hours-view)
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!
npm ERR! For a full report see:
npm ERR! C:\Users\...

就是这样。感谢你们帮助我,你们知道这对我有多么重要!?
Jonas I F

尝试过在谷歌上搜索,但没有找到答案。现在我在这里 我在我的Ionic Angular应用程序中安装日历时遇到了问题。

英文:

Quite easy. I need to create a project; write a calendar/schedule app which shows(and is editable) the schedule/division of professor in my institute up to daily view.

First Question, do you have better ideas, ways or software then me to code it?

Second:

  • I installed a new fresh ionic app via "ionic start scheduleapp blank"
  • choose angular
  • cd file
  • npm i angular-calendar angular-calendar-week-hours-view @angular/animations

and here already i get the following error:

npm ERR! code ERESOLVE
npm ERR! ERESOLVE unable to resolve dependency tree
npm ER*your text*R!
npm ERR! While resolving: sched@0.0.1
npm ERR! Found: @angular/core@15.2.0
npm ERR! node_modules/@angular/core
npm ERR!   @angular/core@&quot;^15.0.0&quot; from the root project
npm ERR!
npm ERR! Could not resolve dependency:
npm ERR! peer @angular/core@&quot;6.1.10&quot; from @angular/animations@6.1.10
npm ERR! node_modules/@angular/animations
npm ERR!   @angular/animations@&quot;*&quot; from the root project
npm ERR!   peer @angular/animations@&quot;&gt;=5.0.0 &lt;7.0.0&quot; from angular-calendar@0.23.7
npm ERR!   node_modules/angular-calendar
npm ERR!     angular-calendar@&quot;*&quot; from the root project
npm ERR!     1 more (angular-calendar-week-hours-view)
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!
npm ERR! For a full report see:
npm ERR! C:\Users\...

thats it.
luv you guys for helping me, you know how much apprechiated it is!?
Jonas I F

tried to google it, didnt find. now im here 我在我的Ionic Angular应用程序中安装日历时遇到了问题。

答案1

得分: 0

First question:

这个日历对Ionic来说非常不错:ion2-calendar文档)。

查看它,看看它是否对您有用。

使用以下命令进行安装:npm install ion2-calendar moment --legacy-peer-deps

Second:

使用以下命令:

npm i angular-calendar angular-calendar-week-hours-view @angular/animations --legacy-peer-deps

英文:

First question:

This calendar is pretty good for ionic: ion2-calendar (documentation).

Check it out to see if it's useful for your needs.

Install it with npm install ion2-calendar moment --legacy-peer-deps

Second:

Use

npm i angular-calendar angular-calendar-week-hours-view @angular/animations --legacy-peer-deps

huangapple
  • 本文由 发表于 2023年2月24日 08:33:26
  • 转载请务必保留本文链接:https://go.coder-hub.com/75551629.html
匿名

发表评论

匿名网友

:?: :razz: :sad: :evil: :!: :smile: :oops: :grin: :eek: :shock: :???: :cool: :lol: :mad: :twisted: :roll: :wink: :idea: :arrow: :neutral: :cry: :mrgreen:

确定