Angular cli如何更新package.json以将font-awesome从v4升级到v5

时间:2018-06-12 11:05:22

标签: angular npm package.json

我有一个角度应用程序,目前正在使用font-awesome版本4.7.0。我想将font-awesome升级到更高版本,即v5.x.谁能帮助我如何做到这一点,而不会产生任何问题?我更新了package.json,但它没有升级版本。

package.json:
  "dependencies": {
    "@angular/animations": "^4.1.0",
    "@angular/forms": "^4.3.6",
    "@angular/http": "^4.3.6",
    "@angular/router": "^4.3.6",
    "@ngscaffolding/core": "^1.1.10",
    "babel-polyfill": "^6.23.0",
    "d3": "^4.10.2",
    "font-awesome": "^4.7.0",
    "moment": "^2.18.1",
    "ng-drag-drop": "^4.0.0",
    "ngx-progressbar": "^2.1.1",
    "oidc-client": "^1.3.0",
    "primeng": "^4.1.0"
  }

包lock.json:

"font-awesome": {
  "version": "4.7.0",
  "resolved": "https://registry.npmjs.org/font-awesome/-/font-awesome-4.7.0.tgz",
  "integrity": "sha1-j6jPBBGhoxr9B7BtKQK7n8gVoTM="
}

我是否还需要更新此package-lock.json?

由于

0 个答案:

没有答案