Сначала необходимо удалить, установить клиент
npm uninstall -g angular-cli
npm cache clean
npm install -g angular-cli@1.6.1
После этого удалить каталог node_modules
Затем изменитьверсии вашего пакета в package.json
должны иметь версии, подобные следующим
{
...
},
...
"dependencies": {
"@angular/animations": "5.2.2",
"@angular/cdk": "^5.2.2",
"@angular/common": "5.2.2",
"@angular/compiler": "5.2.2",
"@angular/core": "5.2.2",
"@angular/forms": "5.2.2",
"@angular/http": "5.2.2",
"@angular/material": "^5.2.2",
"@angular/platform-browser": "5.2.2",
"@angular/platform-browser-dynamic": "5.2.2",
"@angular/router": "5.2.2",
"@ngrx/core": "^1.2.0",
"@ngrx/store": "^4.0.3",
"core-js": "^2.5.1",
"hammerjs": "^2.0.8",
"rxjs": "^5.5.2",
"typescript": "^2.4.2",
"web-animations-js": "^2.3.1",
"zone.js": "^0.8.18"
},
"devDependencies": {
"@angular/cli": "1.6.1",
"@angular/compiler-cli": "5.2.2",
"@angular/language-service": "5.2.2",
"@types/jasmine": "~2.5.53",
"@types/jasminewd2": "~2.0.2",
"@types/node": "~6.0.60",
...
}
}
и устанавливать пакеты
npm install