与angular2和@angular节点模块冲突

时间:2016-07-02 10:49:26

标签: node.js typescript angular

目前我正在使用node.js v5.7.0。从npm安装时,有时我能看到@angular和有时angular2文件夹。

由于这种混乱,我无法克服这些错误。

  

错误:“找不到@angular”

    package.json:


  {
 "name": "PBar",
 "version": "3.6.0",
 "scripts": {
 "start": "tsc && concurrently \"npm run tsc:w\" \"npm run lite\" ",
 "lite": "lite-server",
 "postinstall": "typings install",
 "tsc": "tsc",
 "tsc:w": "tsc -w",
 "typings": "typings"
 },
 "license": "ISC",
 "dependencies": {
 "@angular/common": "2.0.0-rc.4",
 "@angular/compiler": "2.0.0-rc.4",
 "@angular/core": "2.0.0-rc.4",
 "@angular/forms": "0.2.0",
 "@angular/http": "2.0.0-rc.4",
 "@angular/platform-browser": "2.0.0-rc.4",
 "@angular/platform-browser-dynamic": "2.0.0-rc.4",
 "@angular/router": "3.0.0-beta.1",
 "@angular/router-deprecated": "2.0.0-rc.2",
 "@angular/upgrade": "2.0.0-rc.4",
 "systemjs": "0.19.27",
 "core-js": "^2.4.0",
 "reflect-metadata": "^0.1.3",
 "rxjs": "5.0.0-beta.6",
 "zone.js": "^0.6.12",
 "angular2-in-memory-web-api": "0.0.14",
 "bootstrap": "^3.3.6"
  },
 "devDependencies": {
 "concurrently": "^2.0.0",
 "lite-server": "^2.2.0",
 "typescript": "^1.8.10",
 "typings":"^1.0.4"
 }
 } 

0 个答案:

没有答案