微信公众号搜"智元新知"关注
微信扫一扫可直接关注哦!

Ckeditor5 未安装 Angular 9.1

如何解决Ckeditor5 未安装 Angular 9.1

问题

 dependencies  issue after installing in angular 9.1 version.

错误

                npm install --save @ckeditor/ckeditor5-angular
                npm WARN @angular-devkit/build-angular@0.1102.5 requires a peer of @angular/compiler-cli@^11.0.0 || ^11.2.0-next but none is installed. You must install peer dependencies yourself.
                npm WARN @angular-devkit/build-angular@0.1102.5 requires a peer of typescript@~4.0.0 || ~4.1.0 but none is installed. You must install peer dependencies yourself.
                npm WARN @ng-select/ng-option-highlight@0.0.2 requires a peer of @angular/common@^8.0.3 but none is installed. You must install peer dependencies yourself.
                npm WARN @ng-select/ng-option-highlight@0.0.2 requires a peer of @angular/core@^8.0.3 but none is installed. You must install peer dependencies yourself.
                npm WARN @ng-select/ng-select@3.7.3 requires a peer of @angular/common@>=8.0.0 <9.0.0 but none is installed. You must install peer dependencies yourself.
                npm WARN @ng-select/ng-select@3.7.3 requires a peer of @angular/core@>=8.0.0 <9.0.0 but none is installed. You must install peer dependencies yourself.
                npm WARN @ng-select/ng-select@3.7.3 requires a peer of @angular/forms@>=8.0.0 <9.0.0 but none is installed. You must install peer dependencies yourself.
                npm WARN @ngtools/webpack@11.2.5 requires a peer of @angular/compiler-cli@^11.0.0 || ^11.2.0-next but none is installed. You must install 
                peer dependencies yourself.
                npm WARN @ngtools/webpack@11.2.5 requires a peer of typescript@~4.0.0 || ~4.1.0 but none is installed. You must install peer dependencies 
                yourself.
                npm WARN angular2-ladda@2.0.2 requires a peer of @angular/common@^8.1.0 but none is installed. You must install peer dependencies yourself.
                npm WARN angular2-ladda@2.0.2 requires a peer of @angular/core@^8.1.0 but none is installed. You must install peer dependencies yourself. 
                npm WARN karma-jasmine-html-reporter@1.5.3 requires a peer of jasmine-core@>=3.5 but none is installed. You must install peer dependencies yourself.
                npm WARN optional SKIPPING OPTIONAL DEPENDENCY: fsevents@2.1.2 (node_modules\@angular\compiler-cli\node_modules\fsevents):
                npm WARN notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for fsevents@2.1.2: wanted {"os":"darwin","arch":"any"} (current: {"os":"win32","arch":"x64"})
                npm WARN optional SKIPPING OPTIONAL DEPENDENCY: fsevents@1.2.13 (node_modules\karma\node_modules\fsevents):
                npm WARN notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for fsevents@1.2.13: wanted {"os":"darwin","arch":"x64"})
                npm WARN optional SKIPPING OPTIONAL DEPENDENCY: fsevents@2.3.2 (node_modules\rollup\node_modules\fsevents):
                npm WARN notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for fsevents@2.3.2: wanted {"os":"darwin","arch":"x64"})
                npm WARN optional SKIPPING OPTIONAL DEPENDENCY: fsevents@2.3.2 (node_modules\fsevents):
                npm WARN notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for fsevents@2.3.2: wanted {"os":"darwin","arch":"x64"})
                npm WARN optional SKIPPING OPTIONAL DEPENDENCY: fsevents@1.2.13 (node_modules\watchpack-chokidar2\node_modules\fsevents):
                npm WARN notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for fsevents@1.2.13: wanted {"os":"darwin","arch":"x64"})
                npm WARN notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for fsevents@1.2.13: wanted {"os":"darwin","arch":"x64"})

                + @ckeditor/ckeditor5-angular@2.0.1
                updated 1 package and audited 1839 packages in 76.847s

                93 packages are looking for funding
                  run `npm fund` for details

                found 8 vulnerabilities (7 low,1 moderate)
                  run `npm audit fix` to fix them,or `npm audit` for details

吴版

                    Angular CLI: 9.1.0
                    Node: 12.16.1
                    OS: win32 x64

                    Angular: 9.1.0
                    ... animations,cli,common,compiler,compiler-cli,core,forms
                    ... language-service,platform-browser,platform-browser-dynamic
                    ... router
                    Ivy Workspace: Yes

                    Package                           Version
                    -----------------------------------------------------------
                    @angular-devkit/architect         0.901.0
                    @angular-devkit/build-angular     0.901.0
                    @angular-devkit/build-optimizer   0.901.0
                    @angular-devkit/build-webpack     0.901.0
                    @angular-devkit/core              9.1.0
                    @angular-devkit/schematics        9.1.0
                    @angular/cdk                      9.1.3
                    @ngtools/webpack                  9.1.0
                    @schematics/angular               9.1.0
                    @schematics/update                0.901.0
                    rxjs                              6.5.4
                    typescript                        3.8.3
                    webpack                           4.42.0
  • Npm 审计后

运行 npm install --save-dev karma@6.2.0 解决 2 个漏洞 运行 npm install --save-dev protractor@7.0.0 解决 1 个漏洞 运行 npm install angular-datatables@11.1.1 解决 2 个漏洞 运行 npm install @angular/cli@11.2.5 解决 2 个漏洞 运行 npm update ini --depth 3 解决 1 个漏洞

请注意,我不想将 Angular 版本从 9 更新到 11。

  • 请建议我如何在不升级到 angular 11 的情况下解决问题。

版权声明:本文内容由互联网用户自发贡献,该文观点与技术仅代表作者本人。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌侵权/违法违规的内容, 请发送邮件至 dio@foxmail.com 举报,一经查实,本站将立刻删除。