Wix allows you to install npm packages on a site. This article explains how to install, update, and uninstall npm packages in your local IDE with the CLI. You can also use npm packages in the editor or the Wix IDE.
Before using an npm package, you need to install it.
Important: By installing an npm package, you agree to that npm module's license agreement.
To install a package in your local IDE with the CLI:
package.json file in your project to see the installed package.Using the CLI, you can update an npm package to its latest version. Currently, you can't switch to previous versions of your package using the CLI.
Important: After changing a package's version, make sure that your code is compatible with the updated version of the package.
To update a package to its latest version with the CLI:
package.json file in your project to see the package's new version.You can uninstall npm packages that you no longer need.
Warning: When you uninstall a package, make sure to update any code that relies on that package.
To uninstall a package using the CLI:
package.json file in your project to see that the package has been removed.