Problem updating from 2.0rc to 2.0

It’s great news that we now have a production release of Yii 2.0.

However, on my system Composer keeps insisting that there is ‘Nothing to install or update’ for the package yiisoft/yii2.

All the ‘subpackages’, like yiisoft/yii2-gii, are updated from 2.0rc to 2.0 correctly.

What could be the problem?

Please post your composer.json and the command you’re using to update.

composer.json:


{

	"name": "yiisoft/yii2-app-advanced",

	"description": "Yii 2 Advanced Application Template",

	"keywords": ["yii2", "framework", "advanced", "application template"],

	"homepage": ...,

	"type": "project",

	"license": "BSD-3-Clause",

	"support": {

                ...

	},

	"minimum-stability": "beta",

	"require": {

		"php": ">=5.4.0",

		"yiisoft/yii2": "*",

		"yiisoft/yii2-bootstrap": "*",

		"yiisoft/yii2-swiftmailer": "*",

		"yiisoft/yii2-imagine": "*",

        "yiisoft/yii2-jui": "*",

        "asofter/yii2-imperavi-redactor": "dev-master",

		"2amigos/yii2-leaflet-extension": "0.1.2",

		"2amigos/yii2-leaflet-geocoder-plugin": "0.1.1",

		"sjaakp/yii2-illustrated-behavior": "dev-master",

		"sjaakp/yii2-bandoneon": "dev-master",

		"sjaakp/yii2-sortable-behavior": "dev-master",

		"fortawesome/font-awesome": "4.1.0"

	},

	"require-dev": {

		"yiisoft/yii2-codeception": "*",

		"yiisoft/yii2-debug": "*",

		"yiisoft/yii2-gii": "*"

	},

	"suggest": {

		"codeception/codeception": "Codeception, 1.8.*@dev is currently works well with Yii.",

		"codeception/specify": "BDD style code blocks for PHPUnit and Codeception",

		"codeception/verify": "BDD Assertions for PHPUnit and Codeception",

		"yiisoft/yii2-faker": "Fixtures generator for Yii2 based on Faker lib"

	},

	"scripts": {

		"post-create-project-cmd": [

			"yii\\composer\\Installer::setPermission"

		]

	},

	"config": {

		"process-timeout": 1800

	},

	"extra": {

        "asset-installer-paths": {

            "npm-asset-library": "vendor/npm",

            "bower-asset-library": "vendor/bower"

        },

		"writable": [

			"backend/runtime",

			"backend/web/assets",


			"console/runtime",

			"console/migrations",


			"frontend/runtime",

			"frontend/web/assets"

		]

	}

}



Commands used:


composer update "yiisoft/yii2 *"

, both with and without


--prefer-dist

; also ‘Composer’ from PHPStorm’s ‘Tools’ menu.

Shouldn’t this line in your composer.json be changed from


"minimum-stability": "beta",

to


"minimum-stability": "stable",

?

The only thing I can see here is "minimum-stability". Try removing it.

After removing minimum-stability, I got this response:


>composer update "yiisoft/yii2 *"

Package "yiisoft/yii2 *" listed for update is not installed. Ignoring.

Loading composer repositories with package information

Updating dependencies (including require-dev)

Your requirements could not be resolved to an installable set of packages.


  Problem 1

    - Removal request for yiisoft/yii2 == 2.0.0.0-RC

    - Can only install one of: bower-asset/yii2-pjax[v2.0.1, v2.0.0].

    - Can only install one of: bower-asset/yii2-pjax[v2.0.0, v2.0.1].

    - yiisoft/yii2 2.0.0 requires bower-asset/yii2-pjax >=2.0.1 -> satisfiable by bower-asset/yii2-pjax[v2.0.1].

    - Installation request for yiisoft/yii2 * -> satisfiable by yiisoft/yii2[2.0.0, 2.0.0-rc].

    - Installation request for bower-asset/yii2-pjax == 2.0.0.0 -> satisfiable by bower-asset/yii2-pjax[v2.0.0].

Beats me. Package not installed? Weird.

Well, "minimum-stability": "dev"?

With “minimum-stability”: “dev” I just get the ‘Nothing to update’ response:


>composer update "yiisoft/yii2 *"

Package "yiisoft/yii2 *" listed for update is not installed. Ignoring.

Loading composer repositories with package information

Updating dependencies (including require-dev)

Reading bower.json of bower-asset/bootstrap (dev-collapsed-class-manual-invocati


Nothing to install or update

Writing lock file

Generating autoload files

add this:

[color="#008800"]"minimum-stability"[/color][color="#666600"]:[/color] [color="#008800"]"stable"[/color][color="#666600"],[/color]

and delete your vendor folder.

( if you have some problem, delete also composer.lock)

I have similar problem with update from 2.0.0 beta4 to 2.0.3

and with nizsheanez/yii2-asset-converter:

For me works:

and delete /vendor directory.