Closed FedericoBenedetti1976 closed 9 years ago
Remove vendor dir and try again.
@samdark I am getting the same error
Package yiisoft/jquery is abandoned, you should avoid using it. No replacement was suggested.
Removed vendor folder and reran composer but same error appears again! any help?
Have you installed global composer plugin as mentioned in docs? http://www.yiiframework.com/doc-2.0/guide-start-installation.html#installing-via-composer
@samdark of course, I tried doing it again but same error also self-updated the composer
please paste your composer.json in full.
I get also this error but only on my linux machine not on windows. here my composer.json
{
"name": "Hundekauf.de",
"description": "Yii 2 Basic Application hundekauf.de",
"keywords": ["hundekauf", "Anzeigenmarkt", "Kleinanzeigen", "Welpen und Hunde kaufen und verkaufen"],
"homepage": "http://www.hundekauf.de/",
"type": "project",
"license": "Privat",
"minimum-stability": "dev",
"require": {
"php": ">=5.4.0",
"yiisoft/yii2": "*",
"yiisoft/yii2-bootstrap": "*",
"yiisoft/yii2-swiftmailer": "*",
"yiisoft/yii2-imagine": "*",
"kmergen/yii2-widgets": "dev-master",
"kartik-v/yii2-date-range": "*",
"kmergen/yii2-feed": "dev-master"
},
"require-dev": {
"yiisoft/yii2-codeception": "*",
"yiisoft/yii2-debug": "*",
"yiisoft/yii2-gii": "*",
"yiisoft/yii2-faker": "*"
},
"scripts": {
"post-create-project-cmd": [
"yii\\composer\\Installer::postCreateProject"
]
},
"config": {
"process-timeout": 1800
},
"extra": {
"yii\\composer\\Installer::postCreateProject": {
"setPermission": [
{
"runtime": "0777",
"web/assets": "0777",
"yii": "0755"
}
],
"generateCookieValidationKey": [
"config/web.php"
]
},
"asset-installer-paths": {
"npm-asset-library": "vendor/npm",
"bower-asset-library": "vendor/bower"
}
}
}
When I use the composer.json file from basic app I get the same error. Has remove lock file and install again but the same error again.
In my case I have solve the problem. I have run composer as sudo and than the lock file owner is root. You should run composer without sudo so that all file owner are the currently logged in user.
I have this problem too. Global composer plugin installed. composer.json from yiisoft/yii2-app-basic basic installation.
Package yiisoft/jquery is abandoned, you should avoid using it. No replacement was suggested.
any more resolution for this same error, i also got this error, and cannot fix it for serveral days?
I also have the same problem.How to solve it?
@kmergen @Lordfef you have an outdated version of the composer plugin asset, run
composer global require "fxp/composer-asset-plugin:~1.0.0"
The 1.0.0 at the end is the most important part.
Same problem for me.
Removed vendor & composer.lock, re-ran composer, and
Package yiisoft/jquery is abandoned, you should avoid using it. No replacement was suggested.
Isn't it because yiisoft/jquery-pjax depends on yiisoft/jquery ?
No. Seems you're missing composer asset plugin: https://github.com/yiisoft/yii2/issues/8094#issuecomment-121707254
Hmm, I have the composer asset plugin... I even updated it to v1.1.1 to avoid deprecated warnings.
If I remove yiisoft/jquery-pjax
from my composer.json, I don't have the warning message anymore.
@samdark if you check https://packagist.org/packages/yiisoft/jquery-pjax you will notice that indeed if you load pjax from composer it will ask you to install yiisoft/jquery
@tof06 if you require to use pjax I advice to install it using bower adding
"bower-asset/yii2-pjax": "*"
to your composer.json
@Faryshta Thanks, works fine now!
Why the heck should yiisoft/jquery
and yiisoft/jquery-pjax
be installed if I use Yii as a RESTful API? Maybe you should consider moving all UI stuff out?
Absolutely. It's already planned for next major versions.
Will it be Yii 3.x or 2.x?
2.1.x.x or 2.2.x.x.
Hi all, i update Yii2 (basic) with composer (just updated). First i have this error: Problem 1
So i read in another issue to try to update the composer asset plugin. I did it:
when i re-launch yii2 update with composer i have now this error: Package yiisoft/jquery is abandoned, you should avoid using it. No replacement was suggested. Writing lock file Generating autoload files
What can i do? Thank's