Upgrade to a New Package Version

  • 2 minutes to read

The topic below describes how to upgrade the client-side HTML JavaScript control to a new version with npm.

The devexpress-dashboard npm package references the devextreme and @devexpress/analytics-core npm packages as peerDependencies. The peerDependencies should be installed and updated manually.

Requirements

  • The script version on the client should match with libraries version on the server up to a minor version.
  • Versions of the devexpress npm packages should be identical (their major and minor versions should be the same).

Version Update in package.json

  1. Open the package.json file and specify package versions:
{
  // ...
  "dependencies": {    
    "@devexpress/analytics-core": "20.2.4",    
    "devexpress-dashboard": "20.2.4",
    "devextreme": "20.2.4",
    "devexpress-dashboard-angular": "20.2.4", // If you use Web Dashboard with Angular
    "devextreme-angular": "20.2.4", // If you use Web Dashboard with Angular
    "devexpress-dashboard-react": "20.2.4", // If you use Web Dashboard with React
    "devextreme-react": "20.2.4" // If you use Web Dashboard with React
  },
}
  1. Install npm packages:
npm install

Version Update in the Command Line

Run the following command:

npm install devexpress-dashboard@20.2.4 devextreme@20.2.4 @devexpress/analytics-core@20.2.4 --save --save-exact

npm install devexpress-dashboard-angular@20.2.4 devextreme-angular@20.2 --save --save-exact // If you use Web Dashboard with Angular
npm install devexpress-dashboard-react@20.2.4 devextreme-react@20.2.4 --save --save-exact // If you use Web Dashboard with React
See Also