# Upgrade Strapi version
Strapi periodically releases code improvements through upgrades. Upgrades contain no breaking changes and are announced in both the terminal and in the administration panel. Migration guides are provided whenver a new Strapi version includes breaking changes.
✋ CAUTION
Plugins extension that create custom code or modify existing code will need to be updated and compared to the changes in the repository. Not updating the plugin extensions could break the application.
# Upgrading the dependencies
PREREQUISITES
- Stop the server before starting the upgrade.
- Confirm there are no migrations between the current and ultimate Strapi versions.
- Upgrade all of the Strapi packages in the
package.json
.
// path: package.json
{
// ...
"dependencies": {
"@strapi/strapi": "4.0.7",
"@strapi/plugin-users-permissions": "4.0.7",
"@strapi/plugin-i18n": "4.0.7",
"sqlite3": "5.0.2"
// ...
}
}
Save the edited
package.json
file.Run either
yarn
ornpm install
to install the upgraded version.
💡 TIP
If the operation doesn't work, try removing your yarn.lock
or package-lock.json
. If that doesn't help, remove the node_modules
folder as well and try again.
# Reinitializing the application
Rebuild the administration panel and start the application: