1

我是 Angular 2 的新手,我已经从服务器下载了 Angular2 项目,并在安装 npm 后尝试在我的本地环境中运行,但它显示以下错误:

“@angular/compiler-cli”包没有正确安装。错误:TypeError:无法读取未定义的属性“私有”

错误:“@angular/compiler-cli”包未正确安装。错误:TypeError:无法读取未定义的属性“私有”

at Object.<anonymous> (D:\Aguila\Admin\Aguila_Admin\node_modules\@ngtools\webpack\src\index.js:14:11)
at Module._compile (module.js:569:30)
at Object.Module._extensions..js (module.js:580:10)
at Module.load (module.js:503:32)
at tryModuleLoad (module.js:466:12)
at Function.Module._load (module.js:458:3)
at Module.require (module.js:513:17)
at require (internal/module.js:11:18)
at Object.<anonymous> (D:\Aguila\Admin\Aguila_Admin\node_modules\@angular\cli\tasks\eject.js:10:19)
at Module._compile (module.js:569:30)
at Object.Module._extensions..js (module.js:580:10)
at Module.load (module.js:503:32)
at tryModuleLoad (module.js:466:12)
at Function.Module._load (module.js:458:3)
at Module.require (module.js:513:17)
at require (internal/module.js:11:18)
at Object.<anonymous> (D:\Aguila\Admin\Aguila_Admin\node_modules\@angular\cli\models\webpack-configs\styles.js:6:17)
at Module._compile (module.js:569:30)
at Object.Module._extensions..js (module.js:580:10)
at Module.load (module.js:503:32)
at tryModuleLoad (module.js:466:12)
at Function.Module._load (module.js:458:3)

我从早上开始尝试,但没有任何效果。请尽快回答。这是我的 project.json 文件:

{
  "name": "aguila-admin",
  "version": "0.0.1",
  "description": "Content Management and Situation Administration for VR Trainer",
  "scripts": {
    "clean": "gulp clean",
    "build": "gulp",
    "start": "gulp && concurrently --kill-others \"gulp watch\" \"lite-server\"",
    "postinstall": "typings install"
  },
  "author": "Jacob Kanipe-Illig",
  "license": "MIT",
  "dependencies": {
    "@angular/common": "2.0.0",
    "@angular/compiler": "2.0.0",
    "@angular/core": "2.0.0",
    "@angular/forms": "2.0.0",
    "@angular/http": "2.0.0",
    "@angular/platform-browser": "2.0.0",
    "@angular/platform-browser-dynamic": "2.0.0",
    "@angular/router": "3.0.0",
    "es6-shim": "^0.35.0",
    "reflect-metadata": "^0.1.3",
    "rxjs": "5.0.0-beta.12",
    "systemjs": "^0.19.27",
    "zone.js": "^0.6.23"
  },
  "devDependencies": {
    "concurrently": "^2.2.0",
    "connect-history-api-fallback": "^1.3.0",
    "del": "^2.2.0",
    "gulp": "^3.9.1",
    "gulp-concat": "^2.6.0",
    "gulp-install": "^0.6.0",
    "gulp-rename": "^1.2.2",
    "gulp-replace": "^0.5.4",
    "gulp-sass": "^2.3.2",
    "gulp-sourcemaps": "^1.6.0",
    "gulp-tslint": "^4.3.5",
    "gulp-typescript": "^2.12.0",
    "gulp-uglify": "^1.5.4",
    "http-proxy-middleware": "^0.17.3",
    "lite-server": "^2.2.0",
    "run-sequence": "^1.2.2",
    "tslint": "^3.5.0",
    "typescript": "^1.8.10",
    "typings": "^1.3.2"
  }
}
4

0 回答 0