使用npm安装时出现Kendo Angular Grid问题

时间:2018-01-31 08:54:20

标签: angularjs npm kendo-grid angular5 kendo-angular-ui

我愿意将kendo-angular-grid用于我的Angular 5.2申请。根据剑道的更新日志,它的最新版本为2.0.0。但是当我使用命令npm install --save @progress/kendo-angular-grid安装软件包时,正在安装较早版本的1.2.1。 我也尝试通过指定版本来安装软件包 -

npm install --save @progress/kendo-angular-grid@2.0.0

但它显示以下错误

  

找不到@ progress / kendo-angular-grid @ 2.0.0

的匹配版本

我的package.json如下 -

{
  "name": "demo",
  "version": "0.0.0",
  "license": "MIT",
  "scripts": {
    "ng": "ng",
    "start": "ng serve",
    "build": "ng build --prod",
    "test": "ng test",
    "lint": "ng lint",
    "e2e": "ng e2e"
  },
  "private": true,
  "dependencies": {
    "@angular-devkit/core": "0.0.29",
    "@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",
    "@progress/kendo-angular-grid": "^1.2.1",
    "core-js": "^2.4.1",
    "npm": "^5.6.0",
    "rxjs": "^5.5.2",
    "zone.js": "^0.8.14"
  },
  "devDependencies": {
    "@angular/cli": "1.6.6",
    "@angular/compiler-cli": "^5.0.0",
    "@angular/language-service": "^5.0.0",
    "@types/jasmine": "~2.8.6",
    "@types/jasminewd2": "~2.0.2",
    "@types/node": "~9.4.0",
    "codelyzer": "^4.0.1",
    "jasmine-core": "~2.9.1",
    "jasmine-spec-reporter": "~4.2.1",
    "karma": "~2.0.0",
    "karma-chrome-launcher": "~2.2.0",
    "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.3.0",
    "ts-node": "~4.1.0",
    "tslint": "~5.9.1",
    "typescript": "2.6.2"
  }
}

此外,我有npm version 5.6

1 个答案:

答案 0 :(得分:1)

我已将节点版本更新为最新并重新安装的npm。它开始正常工作。不知道是什么导致了这个问题。