정보를 정기적 @ 핵심 : NPM 버전 : 3.10.10 및 nodejs 버전 : 6.11.1충족 피어 의존도 @ 각도/5.0.0
내가 설정하고 싶습니다 각도 웹 API가있는 .NET 프로젝트. 그러나 나는 충족 depedencies을 가지고 : "각/컴파일러 @충족 피어 종속성을 5.0.0는 @ 5.0.0 @ 및 각도/핵심 @"
는 내가 내 프로젝트 작업을 진행하게 시도 할 수 있습니다? 앞으로 도움을 주셔서 감사합니다!
project.json :
{
"dependencies": {
"Microsoft.NETCore.App": {
"version": "1.0.1",
"type": "platform"
},
"Microsoft.AspNetCore.Diagnostics": "1.0.0",
"Microsoft.AspNetCore.Server.IISIntegration": "1.0.0",
"Microsoft.AspNetCore.Server.Kestrel": "1.0.1",
"Microsoft.Extensions.Logging.Console": "1.0.0",
"Microsoft.AspNetCore.StaticFiles": "1.0.0",
"Microsoft.AspNetCore.Mvc.Core": "1.0.1",
"Microsoft.AspNetCore.Mvc": "1.0.1"
},
"tools": {
"Microsoft.AspNetCore.Server.IISIntegration.Tools": "1.0.0-preview2-final"
},
"frameworks": {
"netcoreapp1.0": {
"imports": [
"dotnet5.6",
"portable-net45+win8"
]
}
},
"buildOptions": {
"emitEntryPoint": true,
"preserveCompilationContext": true
},
"runtimeOptions": {
"configProperties": {
"System.GC.Server": true
}
},
"publishOptions": {
"include": [
"wwwroot",
"web.config"
]
},
"scripts": {
"postpublish": [ "dotnet publish-iis --publish-folder %publish:OutputPath% --framework %publish:FullTargetFramework%" ]
}
}
package.json :
{
"name": "aspnetcoredemo",
"version": "0.0.0",
"license": "MIT",
"scripts": {
"ng": "ng",
"start": "ng serve",
"build": "ng build",
"test": "ng test",
"lint": "ng lint",
"e2e": "ng e2e"
},
"private": true,
"dependencies": {
"@angular/animations": "^5.0.0",
"@angular/common": "^5.0.0",
"@angular/compiler": "^5.0.0",
"@angular/core": "^5.0.0",
"@angular/forms": "^5.0.0",
"@angular/http": "^5.0.0",
"@angular/platform-browser": "^5.0.0",
"@angular/platform-browser-dynamic": "^5.0.0",
"@angular/router": "^5.0.0",
"core-js": "^2.4.1",
"rxjs": "^5.5.2",
"zone.js": "^0.8.14"
},
"devDependencies": {
"@angular/cli": "1.5.0",
"@angular/compiler-cli": "^5.0.0",
"@angular/language-service": "^5.0.0",
"@types/jasmine": "~2.5.53",
"@types/jasminewd2": "~2.0.2",
"@types/node": "~6.0.60",
"codelyzer": "~3.2.0",
"jasmine-core": "~2.6.2",
"jasmine-spec-reporter": "~4.1.0",
"karma": "~1.7.0",
"karma-chrome-launcher": "~2.1.1",
"karma-cli": "~1.0.1",
"karma-coverage-istanbul-reporter": "^1.2.1",
"karma-jasmine": "~1.1.0",
"karma-jasmine-html-reporter": "^0.2.2",
"protractor": "~5.1.2",
"ts-node": "~3.2.0",
"tslint": "~5.7.0",
"typescript": "~2.4.2"
}
}
EDIT : NG -v 결과
각도 CLI : 1.5.0
노드 : 6.11.1
OS : 당신은 최신 버전으로
nodejs/npm
업데이트해야
프로젝트를 어떻게 만들었습니까? Angular-Cli를 사용 했습니까? –
나는이 자습서를 따라 갔다 : https://social.technet.microsoft.com/wiki/contents/articles/40065.getting-started-with-asp-net-core-and-angular-4-using-web-api. aspx – dafna
는 질문과 함께'ng -v'의 결과를 게시합니다. 그것은 작동해야합니다. 'node_modules'을 지우고 n을 5.5.1로 업데이트 할 수 있습니다. 이전 버전보다 더 나은 방법입니다. –