Upgrade to PrimeNG 2.0-RC1 issue

UI Components for Angular
Post Reply
mohanr.k
Posts: 19
Joined: 23 Dec 2016, 00:42

23 Jan 2017, 18:58

Hi,

I am trying to upgrade to PrimeNG 2.0-RC1 using "npm install primeng --save". But nothing happenign and still old version is showing. Could someone assist me on this issue

current primeng version : 1.1.4

cagatay.civici
Prime
Posts: 18616
Joined: 05 Jan 2009, 00:21
Location: Cybertron
Contact:

24 Jan 2017, 12:18

What does your package.json look like?

alexey93
Posts: 65
Joined: 24 Jan 2017, 14:09

24 Jan 2017, 14:14

I have the same problem

Code: Select all

{
  "name": "primeng-quickstart",
  "version": "v1.0.0-SNAPSHOT",
  "scripts": {
    "start": "tsc && concurrently \"tsc -w\" \"lite-server\" ",
    "lite": "lite-server",
    "tsc": "tsc",
    "tsc:w": "tsc -w"
  },
  "license": "ISC",
  "dependencies": {
    "@angular/common": "~2.2.0",
    "@angular/compiler": "~2.2.0",
    "@angular/core": "~2.2.0",
    "@angular/forms": "~2.2.0",
    "@angular/http": "~2.2.0",
    "@angular/platform-browser": "~2.2.0",
    "@angular/platform-browser-dynamic": "~2.2.0",
    "@angular/router": "~3.2.0",
    "angular-in-memory-web-api": "~0.1.15",
    "chart.js": "^2.4.0",
    "core-js": "^2.4.1",
    "primeng": "^1.1.4",
    "reflect-metadata": "^0.1.8",
    "rxjs": "5.0.0-beta.12",
    "systemjs": "0.19.40",
    "zone.js": "^0.6.26"
  },
  "devDependencies": {
    "concurrently": "^3.1.0",
    "lite-server": "^2.2.2",
    "typescript": "^2.0.10",
    "@types/node": "^6.0.46"
  }
}

sp7
Posts: 18
Joined: 30 Aug 2016, 16:53

24 Jan 2017, 16:12

You have to explicitly change the version when moving Major versions. ^ Will give you the latest minor version matching the major version, while ~ will give you the latest revision matching the major and minor version. ^1.1.4 is like 1.*.*, ~1.1.4 is like 1.1.*

Code: Select all

"@angular/common": "^2.2.0",
    "@angular/compiler": "^2.2.0",
    "@angular/core": "^2.2.0",
    "@angular/forms": "^2.2.0",
    "@angular/http": "^2.2.0",
    "@angular/platform-browser": "^2.2.0",
    "@angular/platform-browser-dynamic": "^2.2.0",
    "@angular/router": "^3.2.0",
    "@angular/upgrade": "^2.2.0",
    "core-js": "^2.4.1",
    "reflect-metadata": "^0.1.8",
    "rxjs": "^5.0.3",
    "systemjs": "^0.19.41",
    "zone.js": "^0.7.4",    
    "bootstrap": "^3.3.6",

    "primeui": "^4.1.15",
    "primeng": "^2.0.0-rc.1",
    "jquery": "^3.1.0",
    "jquery.inputmask": "^3.3.3",
    "jqueryui": "^1.11.1",
    "font-awesome": "^4.6.3"

mohanr.k
Posts: 19
Joined: 23 Dec 2016, 00:42

24 Jan 2017, 19:44

Thank you for your reply. I unistalled and reinstalled PrimeNG to fix this issue.

Post Reply

Return to “PrimeNG”

  • Information
  • Who is online

    Users browsing this forum: No registered users and 3 guests