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 whenever a new Strapi version includes breaking changes.
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.
Upgrade the dependencies
- 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 version numbers in
package.jsonto the latest stable Strapi version (Strapi stable versions are listed on the GitHub releases page):
// path: package.json
Save the edited
Install the upgraded version:
npm install💡 Tip
If the operation doesn't work, try removing your
package-lock.json. If that doesn't help, remove the
node_modulesfolder as well and try again.
Rebuild the application
Run the following command in your project root directory to rebuild Strapi's admin panel:
npm run build
Restart the application
Run the following command in your project root directory to restart the application:
npm run develop