HelpBot Assistant

How can I help you?

Update Syncfusion® npm Package

2 Feb 20261 minute to read

Upgrading Syncfusion® npm packages to the latest versions is straightforward and does not require uninstalling packages first. Use the npm-check-updates tool to update package versions in package.json, then install the updated packages.

Update all Syncfusion® npm packages

Follow these steps to upgrade all Syncfusion® npm packages:

  1. Install npm-check-updates globally. This tool helps update dependencies in package.json interactively.
npm install -g npm-check-updates
  1. Run the following command to update only Syncfusion packages in package.json to the latest versions:
ncu -u -f /^@syncfusion/

This updates package.json with the latest versions for all @syncfusion packages.

  1. Install the updated packages and remove duplicate packages:
npm update
npm dedupe

Update a specific npm package

To upgrade one or more specific Syncfusion packages, run:

npm update @syncfusion/ej2-grids
npm update @syncfusion/ej2-react-grids
npm dedupe

Note: The npm dedupe command searches and removes duplicate packages in node_modules, helping to avoid multiple versions of the same package.