1

我愿意kendo-angular-grid用于我的Angular 5.2应用程序。根据 Kendo 的更新日志,它的最新版本是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

4

1 回答 1

1

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

于 2018-02-01T06:13:16.967 回答