【问题标题】:error while installing highcharts in angular app在角度应用程序中安装 highcharts 时出错
【发布时间】:2021-02-08 13:55:01
【问题描述】:

我想在 angula pp 中安装 highcharts 包,但是 angular cli 给了我错误,如下所示:

npm WARN @angular/flex-layout@11.0.0-beta.33 requires a peer of @angular/cdk@^11.0.0 but none is installed. You must install peer dependencies yourself.
npm WARN @angular/flex-layout@11.0.0-beta.33 requires a peer of @angular/core@>=11.0.0 but none is installed. You must install peer dependencies yourself.
npm WARN @angular/flex-layout@11.0.0-beta.33 requires a peer of @angular/common@>=11.0.0 but none is installed. You must install peer dependencies yourself.
npm WARN @angular/flex-layout@11.0.0-beta.33 requires a peer of @angular/platform-browser@>=11.0.0 but none is installed. You must install peer dependencies yourself.
npm WARN @angular/material-moment-adapter@11.0.2 requires a peer of @angular/material@11.0.2 but none is installed. You must install peer dependencies yourself.
npm WARN @angular/material-moment-adapter@11.0.2 requires a peer of @angular/core@^11.0.0 || ^12.0.0-0 but none is installed. You must install peer dependencies yourself.
npm WARN ng-validate-equal@1.0.4 requires a peer of @angular/common@^9.0.7 but none is installed. You must install peer dependencies yourself.
npm WARN ng-validate-equal@1.0.4 requires a peer of @angular/core@^9.0.7 but none is installed. You must install peer dependencies yourself.
npm WARN ng-validate-equal@1.0.4 requires a peer of tslib@^1.10.0 but none is installed. You must install peer dependencies yourself.

npm ERR! code ENOENT
npm ERR! syscall rename
npm ERR! path D:\FarooqDropbox\Dropbox\FarooqFolder\BugSmashClientApp\node_modules\highcharts
npm ERR! dest D:\FarooqDropbox\Dropbox\FarooqFolder\BugSmashClientApp\node_modules\.highcharts.DELETE
npm ERR! errno -4058
npm ERR! enoent ENOENT: no such file or directory, rename 'D:\FarooqDropbox\Dropbox\FarooqFolder\BugSmashClientApp\node_modules\highcharts' -> 'D:\FarooqDropbox\Dropbox\FarooqFolder\BugSmashClientApp\node_modules\.highcharts.DELETE'
npm ERR! enoent This is related to npm not being able to find a file.
npm ERR! enoent

npm ERR! A complete log of this run can be found in:
npm ERR!     C:\Users\biolab\AppData\Roaming\npm-cache\_logs\2021-02-08T13_43_50_089Z-debug.log

如果有人知道,请告诉我这个问题的解决方案。

【问题讨论】:

  • 如果有人知道解决方案,请告诉我,我正在等待您的回复。谢谢
  • 你是怎么做到的?
  • 非常感谢您的回复,但我现在可以通过卸载更高版本的软件包然后再次安装低版本的软件包来解决这个问题

标签: angular charts highcharts angular10 angular-highcharts


【解决方案1】:

在这个问题中我所做的是我只是简单地进入文件下面:

package.json

并写下我想在我的 Angular 应用程序中安装的包名称,然后 Visual Studio 代码会自动向我显示错误和一些安装建议,我只需单击这些建议来安装我无法使用的任何包ANGULAR CLI 中的命令。

【讨论】:

    猜你喜欢
    • 2020-11-03
    • 2018-01-02
    • 1970-01-01
    • 1970-01-01
    • 2012-07-16
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    相关资源
    最近更新 更多