小编bka*_*rdo的帖子

发生未处理的异常:找不到模块“@angular/compiler-cli/ngcc”

我刚刚开始我的第一份工作,并负责处理一个将更新的旧项目。

我给了一台新电脑,所以我安装了 node.js,Visual Studio 新版本。

正如我提到的,我正在使用 WebStorm 上的一个旧项目,但出现此错误:

发生未处理的异常:找不到模块“@angular/compiler-cli/ngcc”

当我搜索它时,我发现了一些与@angular/compiler-clinot with相关的解决方案@angular/compiler-cli/ngcc

我试过了:

  • 擦除 Node_Module 并强制擦除缓存。
  • npm uninstall @angular/compiler-cli 并重新安装。
  • 尝试手动更新,但没有修复。

这是我的 package.json 文件

{
  "name": "retail-report-mobile",
  "version": "0.0.0",
  "scripts": {
    "ng": "ng",
    "start": "ng serve",
    "start:en": "ng serve --aot --i18nFile=src/locale/language.en.xlf --i18nFormat=xlf --locale en",
    "build": "ng build --prod --build-optimizer --aot",
    "test": "ng test",
    "lint": "ng lint",
    "e2e": "ng e2e"
  },
  "private": true,
  "dependencies": {
    "@angular/animations": "^6.1.7",
    "@angular/cdk": "^6.4.2",
    "@angular/common": "^6.1.0",
    "@angular/compiler": "^6.1.0",
    "@angular/core": "^6.1.0",
    "@angular/forms": "^6.1.0",
    "@angular/http": …
Run Code Online (Sandbox Code Playgroud)

node.js webstorm angular

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

标签 统计

angular ×1

node.js ×1

webstorm ×1