小编Yas*_*aki的帖子

发生未处理的异常:脚本文件 ../node_modules/chart.js 不存在

我正在尝试在我的 Angular 项目中使用 PrimeNG,我创建了一个新项目并尝试启动,但它给了我这个错误,我执行了以下步骤:

  1. npm install primeng --save
  2. npm install @angular/animations --save
  3. npm install Chart.js --save
  4. npm uninstall ng2-charts

../node_modules/chart.js/dist/Chart.js在我的Angular.json 中添加

当我尝试使用 运行我的项目时ng serve,它给了我以下错误:

发生未处理的异常:脚本文件 ../node_modules/chart.js 不存在

任何帮助都可能有用,谢谢。

编辑:

这是我的 Angular.json 的一部分:

"architect": {
        "build": {
          "builder": "@angular-devkit/build-angular:browser",
          "options": {
            "outputPath": "dist/YarbiTkhdem",
            "index": "src/index.html",
            "main": "src/main.ts",
            "polyfills": "src/polyfills.ts",
            "tsConfig": "tsconfig.app.json",
            "aot": true,
            "assets": ["src/favicon.ico", "src/assets"],
            "styles": ["src/styles.css"],
            "scripts": ["../node_modules/chart.js/dist/Chart.js"]
          },
Run Code Online (Sandbox Code Playgroud)

javascript node.js primeng angular

4
推荐指数
1
解决办法
9502
查看次数

我可以使用 Prometheus 监控多个服务器吗?

我想为我的企业监控不同的服务器,我将使用 Prometheus 来实现这一点,我想知道我是否可以监控它们?示例:我想在服务器上安装 Prometheus 并使用代理监控其余服务器,但我没有找到任何有关 Prometheus 代理的文档。感谢您的帮助。

performance monitoring prometheus

0
推荐指数
1
解决办法
5953
查看次数