Search results

Update Syncfusion npm Package

22 Nov 2022 / 1 minute to read

It is easy to upgrade your Syncfusion npm package to the latest version without uninstalling the packages. The Syncfusion packages can be updated with the help of npm-check-updates package.

Update all Syncfusion npm packages

Refer the below steps to upgrade Syncfusion npm packages.

  1. Install the npm-check-update package globally to use this as CLI.
Copied to clipboard
npm install -g npm-check-updates
  1. Run the below command to update npm packages. The below command will filters only Syncfusion packages and update it with latest version. This will update the package.json file with latest version of all @syncfusion packages.
Copied to clipboard
ncu -u -f /^@syncfusion/
  1. Now, run the following commands to update the packages in node_modules and remove the duplicate package which is already installed.
Copied to clipboard
npm update
npm dedupe

Updating a Specific npm Package

If you want to upgrade only a specific Syncfusion npm package, run the following command.

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

dedupe searches and deletes the duplicate packages in node_modules.