-
-
Notifications
You must be signed in to change notification settings - Fork 6.9k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Composer new asset manager error #5107
Comments
Strange behavior, it is caused by the dependencies in the |
same problem, but not solved... |
the jquery problem came back.... The file or directory to be published does not exist: /var/www/html/app/vendor/bower/jquery/dist |
solved adding for a strange way...if i have some extension in require-dev, composer fail... |
the bower bootstrap download the dev package it has many error in less now to solve it add in composer.json "bower-asset/bootstrap":"@stable". |
It is temporarily. Do not rush to be updated. |
@johnluxor please show your composer.json |
When I added
it solved my problem |
@johnluxor does not work |
@johnluxor worked for me 👍 |
If you want to use the stable versions for assets, you must add the flag "@ stable" for each asset package, because the package root has a "minimum-stability" option on "dev". |
@johnluxor worked for me too :) |
@johnluxor worked for me too, cheers |
I had the same problem, like could no longer use composer as project would just collapse! switched composer asset plugin to 1.0.0-beta1 and then composer update works. So, I created an alias in the common/config/aliases.php (advanced template) and (unfortunately) had to edit a line in the Yii2 codebase When this is officially fixed (of if there's some other way to override the @bower alias) we can just uncomment the line. Hope this helps. |
@ptheofan This change is doing in the config of composer.json file of Yii2 (see Define a custom directory for the assets installation for edit manually the config). |
A solution has been found (see fxpio/composer-asset-plugin#29). Now the alias of a branch is added if:
|
Thanks @francoispluchino ! |
I have also added the |
... |
:(
|
@githubjeka do you mean this?
what the diferent with should i run it again? |
@githubjeka |
@mdmunir have you this error with the most recent version ("dev") installed in global mode? |
@francoispluchino it is your component, right? good job, i like it 👍 |
@mdmunir Can you give me your composer.json file, that I fixes this problem, please? |
|
@mdmunir I just tested, and everything is OK. I think your Composer does not use the latest version Commands executed: $ composer selfupdate
$ composer global require fxp/composer-asset-plugin:@dev You can also update your global dependencies: $ composer global update And I get: $ composer install --prefer-dist
Loading composer repositories with package information
Installing dependencies (including require-dev)
- Installing yiisoft/yii2-composer (dev-master 0128e4a)
Downloading: 100%
Extracting archive
- Installing bower-asset/jquery (2.1.1)
Downloading: 100%
Extracting archive
- Installing bower-asset/yii2-pjax (v2.0.0)
Downloading: 100%
Extracting archive
- Installing bower-asset/punycode (v1.3.1)
Downloading: 100%
Extracting archive
- Installing bower-asset/jquery.inputmask (3.x-dev 836b4e5)
Downloading: 100%
Extracting archive
- Installing cebe/markdown (0.9.x-dev 6a3c373)
Downloading: 100%
Extracting archive
- Installing ezyang/htmlpurifier (v4.6.0)
Downloading: 100%
Extracting archive
- Installing yiisoft/yii2 (dev-master af7ee57)
Downloading: 100%
Extracting archive
- Installing phpspec/php-diff (dev-master 30e103d)
Downloading: 100%
Extracting archive
- Installing mdmsoft/yii2-autonumber (dev-master d357c7a)
Downloading: 100%
Extracting archive
- Installing mdmsoft/yii2-logger (dev-master e307c74)
Downloading: 100%
Extracting archive
- Installing mdmsoft/yii2-format-converter (dev-master 9db2719)
Downloading: 100%
Extracting archive
- Installing mdmsoft/yii2-client-tools (dev-master 7abb733)
Downloading: 100%
Extracting archive
- Installing mdmsoft/yii2-ar-behaviors (dev-master dac5a4c)
Downloading: 100%
Extracting archive
- Installing mdmsoft/yii2-widgets (dev-master d2b8a18)
Downloading: 100%
Extracting archive
- Installing bower-asset/jquery-ui (1.11.1)
Downloading: 100%
Extracting archive
- Installing yiisoft/yii2-jui (dev-master b6ec81d)
Downloading: 100%
Extracting archive
- Installing mdmsoft/yii2-admin (dev-master 61dcf6c)
Downloading: 100%
Extracting archive
- Installing yiisoft/yii2-codeception (dev-master 2f7a70f)
Downloading: 100%
Extracting archive
- Installing bower-asset/bootstrap (v3.2.0)
Downloading: 100%
Extracting archive
- Installing yiisoft/yii2-bootstrap (dev-master f295f15)
Downloading: 100%
Extracting archive
- Installing yiisoft/yii2-debug (dev-master ae57c50)
Downloading: 100%
Extracting archive
- Installing bower-asset/typeahead.js (v0.10.5)
Downloading: 100%
Extracting archive
- Installing yiisoft/yii2-gii (dev-master 7858501)
Downloading: 100%
Extracting archive
mdmsoft/yii2-logger suggests installing yiisoft/yii2-mongodb (Use for mongo storage)
Writing lock file
Generating autoload files |
@francoispluchino
more than week ago. I dont see |
@francoispluchino |
Today, I decided execute composer update command, but get that errors
The text was updated successfully, but these errors were encountered: