Closed Yousha closed 4 years ago
1- Open system's terminal/console. 2- Enter the following command: composer create-project --prefer-dist yiisoft/yii2-app-basic basic
composer create-project --prefer-dist yiisoft/yii2-app-basic basic
Install latest version of "yiisoft/yii2-app-basic", both in vendor folder and composer.json file.
Yii2 installs latest version in Vendor folder, but old one in composer.json file.
composer.json file: "yiisoft/yii2": "~2.0.14",
Vendor folder: yiisoft/yii2 2.0.37
`Creating a "yiisoft/yii2-app-basic" project at "./basic" Installing yiisoft/yii2-app-basic (2.0.37)
~2.0.14 means 2.0.14 and up. That's correct.
~2.0.14
What steps will reproduce the problem?
1- Open system's terminal/console. 2- Enter the following command:
composer create-project --prefer-dist yiisoft/yii2-app-basic basic
What's expected?
Install latest version of "yiisoft/yii2-app-basic", both in vendor folder and composer.json file.
What do you get instead?
Yii2 installs latest version in Vendor folder, but old one in composer.json file.
composer.json file: "yiisoft/yii2": "~2.0.14",
Vendor folder: yiisoft/yii2 2.0.37
Additional info
`Creating a "yiisoft/yii2-app-basic" project at "./basic" Installing yiisoft/yii2-app-basic (2.0.37)