我一直试图抓住角度2并创建了一个应用程序(没有角度cli)工作得很好。现在阅读之后,虽然许多博客和教程都明白了angular-cli是创建angular 2应用程序的推荐方法,但我做到了这一点,但同一个应用程序抱怨没有找到node_modules文件夹及其中的任何库。
任何帮助将不胜感激。 如果你需要额外的工件,请告诉我,我会补充。
(用package.json更新)
{
"name": "angular2-demo",
"version": "0.0.0",
"license": "MIT",
"angular-cli": {},
"scripts": {
"ng": "ng",
"start": "ng serve",
"lint": "tslint \"src/**/*.ts\"",
"test": "ng test",
"pree2e": "webdriver-manager update --standalone false --gecko false",
"e2e": "protractor"
},
"private": true,
"dependencies": {
"@angular/common": "^2.3.1",
"@angular/compiler": "^2.3.1",
"@angular/core": "^2.3.1",
"@angular/forms": "^2.3.1",
"@angular/http": "^2.3.1",
"@angular/platform-browser": "^2.3.1",
"@angular/platform-browser-dynamic": "^2.3.1",
"@angular/router": "^3.3.1",
"angular2-in-memory-web-api": "0.0.15",
"bootstrap": "^3.3.6",
"primeng": "^1.1.1",
"primeui": "^4.1.15",
"reflect-metadata": "^0.1.3",
"font-awesome": "4.7.0",
"@types/lodash": "4.14.45",
"devextreme" : "16.2.3",
"devextreme-angular" : "16.2.3-rc.3",
"systemjs": "0.19.27",
"core-js": "^2.4.1",
"rxjs": "^5.0.1",
"ts-helpers": "^1.1.1",
"zone.js": "^0.7.2"
},
"devDependencies": {
"@angular/compiler-cli": "^2.3.1",
"@types/jasmine": "2.5.38",
"@types/node": "^6.0.42",
"angular-cli": "1.0.0-beta.24",
"codelyzer": "~2.0.0-beta.1",
"jasmine-core": "2.5.2",
"jasmine-spec-reporter": "2.5.0",
"karma": "1.2.0",
"karma-chrome-launcher": "^2.0.0",
"karma-cli": "^1.0.1",
"karma-jasmine": "^1.0.2",
"karma-remap-istanbul": "^0.2.1",
"protractor": "~4.0.13",
"ts-node": "1.2.1",
"tslint": "^4.0.2",
"typescript": "~2.0.3"
}
}