Search results

Updating Syncfusion npm packages

08 May 2023 / 1 minute to read

Keeping Syncfusion npm packages up to date is important to ensure that you have access to the latest features and bug fixes. The npm-check-updates package is a helpful tool that can be used to update your Syncfusion packages to their latest versions.

Updating All Syncfusion Packages

To update all Syncfusion packages, you can install the npm-check-updates package globally by running the following command,

Copied to clipboard
npm install -g npm-check-updates

Next, use the ncu command to update the package.json file to the latest version for all @syncfusion packages,

Copied to clipboard
ncu -u -f /^@syncfusion/

Finally, run the following commands to update the packages in node_modules and remove any duplicate packages that have been installed,

Copied to clipboard
npm update
npm dedupe

Updating a specific npm package

You can also update a specific npm package by running the following commands from the command prompt in the root of your application,

Copied to clipboard
npm update @syncfusion/ej2-grids
npm dedupe

This will update the specific package you have provided and run npm dedupe command which will remove any duplicate package.