Версии:
Ubuntu: 18.04.4 LTS
dotnet sdk: 3.1.200
npm: 6.13.4
node: 12.6.1
У меня есть недавно созданный до tnet core spa с Angular (созданный с использованием dotnet new angular ...
). Когда я вошел и запустил npm install
, он выдал следующую ошибку:
npm ERR! code ETARGET
npm ERR! notarget No matching version found for @angular/http@~8.2.5.
npm ERR! notarget In most cases you or one of your dependencies are requesting
npm ERR! notarget a package version that doesn't exist.
npm ERR! notarget
npm ERR! notarget It was specified as a dependency of 'ClientApp'
npm ERR! notarget
npm ERR! A complete log of this run can be found in:
npm ERR! /home/ianmann56/.npm/_logs/2020-04-02T22_23_30_507Z-debug.log
Мой пакет. json выглядит так:
{
"name": "budgetsquirrel",
"version": "0.0.0",
"scripts": {
"ng": "ng",
"start": "ng serve",
"build": "ng build",
"test": "ng test",
"lint": "ng lint budgetsquirrel --fix",
"e2e": "ng e2e"
},
"private": true,
"dependencies": {
"@angular/animations": "~8.2.5",
"@angular/cdk": "~8.2.3",
"@angular/common": "~8.2.5",
"@angular/compiler": "~8.2.5",
"@angular/core": "~8.2.5",
"@angular/forms": "~8.2.5",
"@angular/http": "~8.2.5",
"@angular/material": "^8.2.3",
"@angular/platform-browser": "~8.2.5",
"@angular/platform-browser-dynamic": "~8.2.5",
"@angular/router": "~8.2.5",
"rxjs": "~6.4.0",
"tslib": "^1.10.0",
"zone.js": "~0.9.1"
},
"devDependencies": {
"@angular-devkit/build-angular": "~0.803.4",
"@angular/cli": "~8.3.4",
"@angular/compiler-cli": "~8.2.5",
"@angular/language-service": "~8.2.5",
"@types/node": "~8.9.4",
"@types/jasmine": "~3.3.8",
"@types/jasminewd2": "~2.0.3",
"codelyzer": "^5.0.0",
"jasmine-core": "~3.4.0",
"jasmine-spec-reporter": "~4.2.1",
"karma": "~4.1.0",
"karma-chrome-launcher": "~2.2.0",
"karma-coverage-istanbul-reporter": "~2.0.1",
"karma-jasmine": "~2.0.1",
"karma-jasmine-html-reporter": "^1.4.0",
"protractor": "~5.4.0",
"ts-node": "~7.0.0",
"tslint": "~5.15.0",
"typescript": "~3.5.3"
}
}
Я тогда попробовал npm list
и получил:
budgetsquirrel@0.0.0 /home/ianmann56/Personal/ApplicationWebApi/BudgetSquirrel.Api/ClientApp
├─┬ UNMET DEPENDENCY @angular/animations@8.2.14
│ └── UNMET DEPENDENCY tslib@1.11.1
├─┬ UNMET DEPENDENCY @angular/cdk@8.2.3
│ ├── UNMET OPTIONAL DEPENDENCY parse5@5.1.1
│ └── UNMET DEPENDENCY tslib@1.11.1
├─┬ UNMET DEPENDENCY @angular/common@8.2.14
│ └── UNMET DEPENDENCY tslib@1.11.1
├─┬ UNMET DEPENDENCY @angular/compiler@8.2.14
│ └── UNMET DEPENDENCY tslib@1.11.1
├─┬ UNMET DEPENDENCY @angular/core@8.2.14
│ └── UNMET DEPENDENCY tslib@1.11.1
├─┬ UNMET DEPENDENCY @angular/forms@8.2.14
│ └── UNMET DEPENDENCY tslib@1.11.1
├── UNMET DEPENDENCY @angular/http@~8.2.5
├─┬ UNMET DEPENDENCY @angular/material@8.2.3
│ └── UNMET DEPENDENCY tslib@1.11.1
├─┬ UNMET DEPENDENCY @angular/platform-browser@8.2.14
│ └── UNMET DEPENDENCY tslib@1.11.1
├─┬ UNMET DEPENDENCY @angular/platform-browser-dynamic@8.2.14
│ └── UNMET DEPENDENCY tslib@1.11.1
├─┬ UNMET DEPENDENCY @angular/router@8.2.14
│ └── UNMET DEPENDENCY tslib@1.11.1
├─┬ UNMET DEPENDENCY rxjs@6.4.0
│ └── UNMET DEPENDENCY tslib@1.11.1
├── UNMET DEPENDENCY tslib@1.11.1
└── UNMET DEPENDENCY zone.js@0.9.1
npm ERR! missing: @angular/animations@8.2.14, required by budgetsquirrel@0.0.0
npm ERR! missing: @angular/cdk@8.2.3, required by budgetsquirrel@0.0.0
npm ERR! missing: @angular/common@8.2.14, required by budgetsquirrel@0.0.0
npm ERR! missing: @angular/compiler@8.2.14, required by budgetsquirrel@0.0.0
npm ERR! missing: @angular/core@8.2.14, required by budgetsquirrel@0.0.0
npm ERR! missing: @angular/forms@8.2.14, required by budgetsquirrel@0.0.0
npm ERR! missing: @angular/material@8.2.3, required by budgetsquirrel@0.0.0
npm ERR! missing: @angular/platform-browser@8.2.14, required by budgetsquirrel@0.0.0
npm ERR! missing: @angular/platform-browser-dynamic@8.2.14, required by budgetsquirrel@0.0.0
npm ERR! missing: @angular/router@8.2.14, required by budgetsquirrel@0.0.0
npm ERR! missing: rxjs@6.4.0, required by budgetsquirrel@0.0.0
npm ERR! missing: tslib@1.11.1, required by budgetsquirrel@0.0.0
npm ERR! missing: zone.js@0.9.1, required by budgetsquirrel@0.0.0
npm ERR! missing: @angular/http@~8.2.5, required by budgetsquirrel@0.0.0
npm ERR! missing: tslib@1.11.1, required by @angular/animations@8.2.14
npm ERR! missing: tslib@1.11.1, required by @angular/cdk@8.2.3
npm ERR! missing: tslib@1.11.1, required by @angular/common@8.2.14
npm ERR! missing: tslib@1.11.1, required by @angular/compiler@8.2.14
npm ERR! missing: tslib@1.11.1, required by @angular/core@8.2.14
npm ERR! missing: tslib@1.11.1, required by @angular/forms@8.2.14
npm ERR! missing: tslib@1.11.1, required by @angular/material@8.2.3
npm ERR! missing: tslib@1.11.1, required by @angular/platform-browser@8.2.14
npm ERR! missing: tslib@1.11.1, required by @angular/platform-browser-dynamic@8.2.14
npm ERR! missing: tslib@1.11.1, required by @angular/router@8.2.14
npm ERR! missing: tslib@1.11.1, required by rxjs@6.4.0
Это совершенно новое приложение, поэтому ничто не отличается от того, если бы вы просто создали его из шаблона do tnet core angular spa.