markdown 将Magento 2升级到更新版本

Posted

tags:

篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了markdown 将Magento 2升级到更新版本相关的知识,希望对你有一定的参考价值。

# Upgrading

Open up `composer.json` and change the two instances of the version to the version you wish to upgrade to.

Check the versions of any modules installed under the `require` section and update as required.

The modules under `require-dev` may also be out of date, so you'll need to download the version of Magento you are upgrading to and check the composer.json to see if any newer versions have been added.

Now run:
```shell
composer update
magento setup:upgrade # php bin/magento setup:upgrade
magento setup:di:compile # php bin/magento setup:di:compile
```

## Known issues
### Composer problems
If you see something like the following
```shell
Can only install one of: magento/framework[101.0.0, 100.0.2].
Can only install one of: magento/framework[101.0.0, 100.0.3].
Can only install one of: magento/framework[101.0.0, 100.0.4].
Can only install one of: magento/framework[101.0.0, 100.0.5].
```
Then you'll need to double-check your `composer.json` and take a look at the modules/core version dependencies.

---

### "Please re-run Magento compile command"
Annoyingly, it isn't clear which command to run, however this refers to running:
```shell
magento setup:di:compile # php bin/magento setup:di:compile
```

以上是关于markdown 将Magento 2升级到更新版本的主要内容,如果未能解决你的问题,请参考以下文章

直接将 Magento 2.1.5 升级到 2.3

将 Magento 1.8 升级到 1.9.2.1

将magento 2.1.6升级到2.2.7后需要Js错误

升级Magento时出错

markdown Magento 2 Javascript笔记(感谢Alan Storm http://alanstorm.com/category/magento-2/)

markdown Magento 2 - 结账