2020-05-25 18:11:45 +02:00
# Update Strapi version
How to upgrade your application to the latest version of Strapi.
## Upgrading your dependencies
2020-05-29 01:42:06 -07:00
Start by upgrading all your Strapi package version.
2020-05-25 18:11:45 +02:00
2020-07-10 11:26:58 +02:00
For example moving from `3.0.4` to `3.0.5`
2020-05-25 18:11:45 +02:00
:::: tabs
2020-07-10 11:26:58 +02:00
::: tab 3.0.5
2020-05-25 18:11:45 +02:00
```json
{
//...
"dependencies": {
2020-07-10 11:26:58 +02:00
"strapi": "3.0.5",
"strapi-admin": "3.0.5",
2020-10-22 08:17:31 -07:00
"strapi-connector-bookshelf": "3.0.5",
2020-07-10 11:26:58 +02:00
"strapi-plugin-content-manager": "3.0.5",
"strapi-plugin-content-type-builder": "3.0.5",
"strapi-plugin-email": "3.0.5",
"strapi-plugin-graphql": "3.0.5",
"strapi-plugin-settings-manager": "3.0.5",
"strapi-plugin-upload": "3.0.5",
"strapi-plugin-users-permissions": "3.0.5",
"strapi-utils": "3.0.5"
2020-05-25 18:11:45 +02:00
}
}
```
:::
2020-07-10 11:26:58 +02:00
::: tab 3.0.6
2020-05-25 18:11:45 +02:00
```json
{
//...
"dependencies": {
2020-07-10 11:26:58 +02:00
"strapi": "3.0.6",
"strapi-admin": "3.0.6",
2020-10-22 08:17:31 -07:00
"strapi-connector-bookshelf": "3.0.6",
2020-07-10 11:26:58 +02:00
"strapi-plugin-content-manager": "3.0.6",
"strapi-plugin-content-type-builder": "3.0.6",
"strapi-plugin-email": "3.0.6",
"strapi-plugin-graphql": "3.0.6",
"strapi-plugin-settings-manager": "3.0.6",
"strapi-plugin-upload": "3.0.6",
"strapi-plugin-users-permissions": "3.0.6",
"strapi-utils": "3.0.6"
2020-05-25 18:11:45 +02:00
}
}
```
:::
::::
2020-10-27 15:39:38 +01:00
Install the specified version:
:::: tabs
::: tab yarn
```bash
yarn install
```
:::
::: tab npm
```bash
npm install
```
:::
::::
2020-05-25 18:11:45 +02:00
::: tip
If the operation doesn't work, you should probably remove your `yarn.lock` or `package-lock.json` . If it still does not work, let's run the hard mode `rm -Rf node_modules`
:::
## Building your administration panel
New releases can introduce changes to the administration panel that require a rebuild.
Start by deleting your current build:
```bash
rm -rf build
```
Build the administration panel:
2020-10-27 15:39:38 +01:00
:::: tabs
::: tab yarn
2020-05-25 18:11:45 +02:00
```bash
yarn build
2020-10-27 15:39:38 +01:00
```
:::
::: tab npm
```bash
2020-05-25 18:11:45 +02:00
npm run build
```
2020-10-27 15:39:38 +01:00
:::
::::
2020-05-25 18:11:45 +02:00
::: tip
If the operation doesn't work, you should probably remove the `.cache` folder too.
:::
## Migration guides
Sometimes Strapi introduces changes that need more than just the previous updates.
That is the reason for the [Migration Guide ](../migration-guide/README.md ) page.
Just make sure when you update your version that a migration guide exists or not.