Cломался composer.json,-
Это произошло после composer update
помогите исправить.
Invalid Parameter – yii\base\InvalidParamException
The file or directory to be published does not exist: /var/www/example.com/basic/vendor/bower-asset/jquery/dist
Код: Выделить всё
in /var/www/example.com/basic/vendor/yiisoft/yii2/web/AssetManager.php at line 456
public function publish($path, $options = [])
{
$path = Yii::getAlias($path);
if (isset($this->_published[$path])) {
return $this->_published[$path];
}
if (!is_string($path) || ($src = realpath($path)) === false) {
throw new InvalidParamException("The file or directory to be published does not exist: $path");
}
if (is_file($src)) {
return $this->_published[$path] = $this->publishFile($src);
}
return $this->_published[$path] = $this->publishDirectory($src, $options);
}
Код: Выделить всё
{
"name": "yiisoft/yii2-app-basic",
"description": "Yii 2 Basic Project Template",
"keywords": ["yii2", "framework", "basic", "project template"],
"homepage": "http://www.yiiframework.com/",
"type": "project",
"license": "BSD-3-Clause",
"support": {
"issues": "https://github.com/yiisoft/yii2/issues?state=open",
"forum": "http://www.yiiframework.com/forum/",
"wiki": "http://www.yiiframework.com/wiki/",
"irc": "irc://irc.freenode.net/yii",
"source": "https://github.com/yiisoft/yii2"
},
"minimum-stability": "dev",
"require": {
"php": ">=7.4.0",
"yidas/yii2-bower-asset": "dev-master",
"yiisoft/yii2": "2.0.13",
"yiisoft/yii2-bootstrap": "2.0.7",
"yiisoft/yii2-swiftmailer": "~2.0.0",
"yiisoft/yii2-authclient": "^2.0@dev",
"dektrium/yii2-user": "^0.9.0@dev",
"dektrium/yii2-rbac": "1.0.0-alpha@dev",
"cinghie/yii2-user-extended": "*",
"raveren/kint": "^1.0",
"kartik-v/yii2-widgets": "*",
"dektrium/yii2-passfield": "dev-master",
"kartik-v/yii2-markdown": "dev-master",
"yiisoft/yii2-gii": "~2.0.0",
"yiisoft/yii2-imagine": "*",
"bower-asset/twig.js": "0.8.4@stable",
"bubasuma/yii2-simplechat": "*"
},
"require-dev": {
"yiisoft/yii2-debug": "~2.0.0",
"yiisoft/yii2-gii": "~2.0.0",
"yiisoft/yii2-faker": "~2.0.0",
"codeception/base": "^2.2.3",
"codeception/verify": "~0.3.1",
"codeception/specify": "~0.4.3"
},
"config": {
"process-timeout": 1800,
"fxp-asset": {
"enabled": false
},
"allow-plugins": {
"yiisoft/yii2-composer": true
}
},
"scripts": {
"post-install-cmd": [
"yii\\composer\\Installer::postInstall"
],
"post-create-project-cmd": [
"yii\\composer\\Installer::postCreateProject",
"yii\\composer\\Installer::postInstall"
]
},
"extra": {
"yii\\composer\\Installer::postCreateProject": {
"setPermission": [
{
"runtime": "0777",
"web/assets": "0777",
"yii": "0755"
}
]
},
"yii\\composer\\Installer::postInstall": {
"generateCookieValidationKey": [
"config/web.php"
]
}
},
"repositories": [
{
"type": "composer",
"url": "https://asset-packagist.org"
}
]
}
rm -rf ~/.composer/cache
rm -rf /path/to/project/vendor
rm /path/to/project/composer.lock
composer global require "fxp/composer-asset-plugin:1.0.0"
composer --prefer-dist install
Что можно ещё сделать ,чтоб исправить?