Angular6 Asp.Net Core Angular 6错误:NPM脚本';启动';已退出,但未指示Angular CLI正在侦听请求 问题

Angular6 Asp.Net Core Angular 6错误:NPM脚本';启动';已退出,但未指示Angular CLI正在侦听请求 问题,angular6,asp.net-core-2.1,Angular6,Asp.net Core 2.1,我在visual studio 2017中使用angular 6应用程序创建asp.net核心,该应用程序在本地运行得非常好。但当我尝试将其部署到云时,它显示了这个错误 AggregateException:发生了一个或多个错误。(发生一个或多个错误。(NPM脚本“start”退出,但未指示Angular CLI正在侦听请求。错误输出为:“NPM”未被识别为内部或外部命令 我已经搜索了此错误,但在应用此答案后,我的错误仍然存在 angular.json Package.json 形象 使用.n

我在visual studio 2017中使用angular 6应用程序创建asp.net核心,该应用程序在本地运行得非常好。但当我尝试将其部署到云时,它显示了这个错误

AggregateException:发生了一个或多个错误。(发生一个或多个错误。(NPM脚本“start”退出,但未指示Angular CLI正在侦听请求。错误输出为:“NPM”未被识别为内部或外部命令

我已经搜索了此错误,但在应用此答案后,我的错误仍然存在

angular.json Package.json 形象

使用.net core 2.1发布angular应用程序时,我遇到了相同的错误。你有什么发现吗?我在azure上创建了一个票证,但没有成功应用可能的解决方案。顺便说一句,问题是,我已经将某人创建的angular project复制到了.net core应用程序中。尽管它在local.in angular.js中运行良好在文件中,项目的名称是旧项目而不是新项目。我用新项目替换了旧项目的名称,它成功了。
{
  "$schema": "./node_modules/@angular/cli/lib/config/schema.json",
  "version": 1,
  "newProjectRoot": "projects",
  "projects": {
    "ClientApp": {
      "root": "",
      "sourceRoot": "src",
      "projectType": "application",
      "prefix": "app",
      "schematics": {},
      "architect": {
        "build": {
          "builder": "@angular-devkit/build-angular:browser",
          "options": {
            "outputPath": "dist/ClientApp",
            "index": "src/index.html",
            "main": "src/main.ts",
            "polyfills": "src/polyfills.ts",
            "tsConfig": "src/tsconfig.app.json",
            "assets": [
              "src/favicon.ico",
              "src/assets"
            ],
            "styles": [
              "src/styles.css"
            ],
            "scripts": [
              "node_modules/jquery/dist/jquery.min.js",
              "src/assets/js/azure-storage.blob.min.js"
            ]
          },
          "configurations": {
            "production": {
              "fileReplacements": [
                {
                  "replace": "src/environments/environment.ts",
                  "with": "src/environments/environment.prod.ts"
                }
              ],
              "optimization": true,
              "outputHashing": "all",
              "sourceMap": false,
              "extractCss": true,
              "namedChunks": false,
              "aot": true,
              "extractLicenses": true,
              "vendorChunk": false,
              "buildOptimizer": true
            }
          }
        },
        "serve": {
          "builder": "@angular-devkit/build-angular:dev-server",
          "options": {
            "browserTarget": "ClientApp:build"
          },
          "configurations": {
            "production": {
              "browserTarget": "ClientApp:build:production"
            }
          }
        },
        "extract-i18n": {
          "builder": "@angular-devkit/build-angular:extract-i18n",
          "options": {
            "browserTarget": "ClientApp:build"
          }
        },
        "test": {
          "builder": "@angular-devkit/build-angular:karma",
          "options": {
            "main": "src/test.ts",
            "polyfills": "src/polyfills.ts",
            "tsConfig": "src/tsconfig.spec.json",
            "karmaConfig": "src/karma.conf.js",
            "styles": [
              "src/styles.css"
            ],
            "scripts": [
              "node_modules/jquery/dist/jquery.min.js",
              "src/assets/js/azure-storage.blob.min.js"
            ],
            "assets": [
              "src/favicon.ico",
              "src/assets"
            ]
          }
        },
        "lint": {
          "builder": "@angular-devkit/build-angular:tslint",
          "options": {
            "tsConfig": [
              "src/tsconfig.app.json",
              "src/tsconfig.spec.json"
            ],
            "exclude": [
              "**/node_modules/**"
            ]
          }
        }
      }
    },
    "ClientApp-e2e": {
      "root": "e2e/",
      "projectType": "application",
      "architect": {
        "e2e": {
          "builder": "@angular-devkit/build-angular:protractor",
          "options": {
            "protractorConfig": "e2e/protractor.conf.js",
            "devServerTarget": "ClientApp:serve"
          },
          "configurations": {
            "production": {
              "devServerTarget": "ClientApp:serve:production"
            }
          }
        },
        "lint": {
          "builder": "@angular-devkit/build-angular:tslint",
          "options": {
            "tsConfig": "e2e/tsconfig.e2e.json",
            "exclude": [
              "**/node_modules/**"
            ]
          }
        }
      }
    }
  },
  "defaultProject": "ClientApp"
}
{
  "name": "client-app",
  "version": "0.0.0",
  "scripts": {
    "ng": "ng",
    "start": "ng serve",
    "build": "ng build",
    "test": "ng test",
    "lint": "ng lint",
    "e2e": "ng e2e"
  },
  "private": true,
  "dependencies": {
    "@angular/animations": "^6.1.0",
    "@angular/cdk": "^6.4.5",
    "@angular/common": "^6.1.0",
    "@angular/compiler": "^6.1.0",
    "@angular/core": "^6.1.0",
    "@angular/forms": "^6.1.0",
    "@angular/http": "^6.1.0",
    "@angular/platform-browser": "^6.1.0",
    "@angular/platform-browser-dynamic": "^6.1.0",
    "@angular/router": "^6.1.0",
    "ngx-toastr": "^8.7.3",
    "@angular/material": "^6.0.1",
    "firebase": "^5.4.0",
    "angularfire2": "^5.0.0-rc.11",
    "core-js": "^2.5.4",
    "rxjs": "^6.0.0",
    "devextreme": "^18.1.4",
    "devextreme-angular": "^18.1.4",
    "hammerjs": "^2.0.8",
    "jquery": "^3.3.1",
    "jszip": "^3.1.5",
    "ng2-file-upload": "^1.3.0",
    "time-ago-pipe": "^1.3.2",
    "angular-select2-component": "^1.1.4",
    "angular2-multiselect-dropdown": "^2.9.0",
    "angular4-carousel": "^3.1.8",
    "zone.js": "~0.8.26"
  },
  "devDependencies": {
    "@angular-devkit/build-angular": "~0.7.0",
    "@angular/cli": "^6.1.5",
    "@angular/compiler-cli": "^6.1.0",
    "@angular/language-service": "^6.1.0",
    "@types/jasmine": "~2.8.6",
    "@types/jasminewd2": "~2.0.3",
    "@types/node": "~8.9.4",
    "codelyzer": "~4.2.1",
    "jasmine-core": "~2.99.1",
    "jasmine-spec-reporter": "~4.2.1",
    "karma": "~1.7.1",
    "karma-chrome-launcher": "~2.2.0",
    "karma-coverage-istanbul-reporter": "~2.0.0",
    "karma-jasmine": "~1.1.1",
    "karma-jasmine-html-reporter": "^0.2.2",
    "protractor": "~5.4.0",
    "ts-node": "~5.0.1",
    "tslint": "~5.9.1",
    "typescript": "~2.7.2"
  }
}