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
Upgrade to PrimeNG 2.0-RC1 issue
-
- Prime
- Posts: 18616
- Joined: 05 Jan 2009, 00:21
- Location: Cybertron
- Contact:
What does your package.json look like?
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"
}
}
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"
-
- Information
-
Who is online
Users browsing this forum: No registered users and 3 guests