相关疑难解决方法(0)

构建:找不到'node'的类型定义文件

VS 2015社区版(在家),npm 3.10,Angular 2我试图在ASP.Net MVC 5应用程序中获取Angular2设置.我开始使用的模板使用了旧版本的Angular,因此我更新了包引用.

当我构建时,列表中的第一个错误是:
构建:无法找到"节点"的类型定义文件
之后还有许多其他错误,但我假设大多数是由于第一个问题.

这是package.json和typings.json

的package.json

{
  "version": "1.0.0",
  "name": "aspnet",
  "private": true,
  "scripts": {
    "postinstall": "typings install",
    "typings": "typings"
  },
  "dependencies": {
    "@angular/common": "~4.0.0",
    "@angular/compiler": "~4.0.0",
    "@angular/core": "~4.0.0",
    "@angular/forms": "~4.0.0",
    "@angular/http": "~4.0.0",
    "@angular/platform-browser": "~4.0.0",
    "@angular/platform-browser-dynamic": "~4.0.0",
    "@angular/router": "~4.0.0",
    "angular-in-memory-web-api": "~0.3.0",
    "systemjs": "0.19.40",
    "core-js": "^2.4.1",
    "rxjs": "5.0.1",
    "zone.js": "^0.8.4",
    "bootstrap": "^3.3.7"
  },
  "devDependencies": {
    "@types/core-js": "^0.9.41",
    "gulp": "^3.9.1",
    "gulp-clean": "^0.3.2",
    "gulp-concat": "^2.6.1",
    "gulp-tsc": "^1.3.1",
    "gulp-typescript": "^3.1.6",
    "path": "^0.12.7",
    "typescript": "~2.1.0",
    "typings": "~2.1.1"
  }
}
Run Code Online (Sandbox Code Playgroud)

typings.json …

asp.net-mvc node.js angular

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

标签 统计

angular ×1

asp.net-mvc ×1

node.js ×1