-
-
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
The file or directory to be published does not exist: /usr/home/dima/advanced/vendor/bower/jquery/dist #6402
Comments
Do you have |
Why do you install yii2 globally? |
the last thing it was
And the /vendor dir missing. So after a few hours of struggling i decided to delete my global .composer/ dir and repeat yii2 install. To Cebe. yii2 installed with another two massive php framework cores globally (composer global require). Is there a way to move /vendor to global .composer/vendor dir and point advanced-app skeleton to use these dependencies from global path, so i can make application package without /vendor directory ? |
it is not a good idea to install yii globally because different applications may depend on different versions of yii. However I have checked in a fix for the yii2-composer plugin to create the directory in case it did not exist before. |
I think I had the same problem, trying to update from 2.0 beta to 2.0.1 stable, the framework was not update correctly and the '@bower' alias was still set to 'bower' instead of 'bower-asset' |
@SaWey make sure that you have the following in your composer.json: https://github.com/yiisoft/yii2/blob/master/apps/basic/composer.json#L49 |
@SaWey same error here but the URL you just shared is inaccessible
|
Same error here, after a fresh installation:
There is no @app/vendor/bower directory in my project but @app/vendor/bower-asset. (Renaming the directory from bower-asset to bower solve the issue. I don't understand why it choosed 'bower-asset' directory name it was just bower previously.) |
try: 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 it solve my problem |
@akosk you probably miss these lines in composer.json: https://github.com/yiisoft/yii2-app-basic/blob/master/composer.json#L49-L52 |
@cebe I did not miss those lines you can check it: https://github.com/akosk/jezsumenza/blob/master/composer.json#L49 Exactly what happened:
|
I have tried but I am not able to reproduce it. Are you sure composer asset plugin is installed on the test server? |
maybe your composer.lock contains some outdated things, run composer update in application and commit the new lock file. |
it doesn't solve my problem... please gimme another way.. |
I had the same issue as akosk did with my vendor/bower folder being automatically named vendor/bower-assets. If anyone has info on this I'd like to know why it's happening. |
Same issue here. Yii2 advanced app, 2.0.6. Runs just fine on localhost in dev environment. Push to OpenShift (build has hooks to init and composer install). Composer has extra lines added:
I SSH'd in and noticed I also had the "bower-asset" directory, instead of just "bower". I ran |
Yay! 👍
Also added: I kept running clear-cache, update.. still was missing jquery and complaining that it couldn't find a matching jquery version...
Bingo! |
Instead of |
I solve this problem after I set config 1.1.1 fix some bug when I do composer install or update encountered like this
After update fxp version , just run My Yii verision is Advance 2.0.6 |
Don't forget to clear composer's cache after you update the fxp plugin. Also, the download page should reflect the new fxp version instead of 1.0.3 to avoid confusion: |
fixed, thanks for pointing it out. |
I was a big lover of Yii, but I really have to say that this issue installing Yii2 it really sucks. I have been for more than 2 hours trying to solve this, I am just installing a multi-app-project in Yii2 (first version) in a new machine for a demo, and still having the issue. The Yii2 developers should do something to make this much more simple. This is starting to look like SYMFONY2 :). |
@joaquimforcada we've learned a lesson and will try getting rid of global composer plugin in 2.1. |
Well, in the end I had to create manually the directory vendor/bower/jquery/dist and vendor/bower/bootsrap/dist. I copied them from the bower-asset original one : Because none of the multiple solutions related with composer and bower and assets works for me. None creates the needed directories under bower/. I am not a genius, but it wouldn't be as easy to change the path in the Yii vendor project?: Thank you anyway. I hope in some weeks this is solved or I will run again with the same issue on PRODUCTION. |
Nope. It should work as it's coded. Again:
|
Yeah i got the same problem inmy project. However in "asset-installer-paths": {
"npm-asset-library": "vendor/npm",
"bower-asset-library": "vendor"
} after running |
@touqeershafi you shouldn't run |
@Faryshta Why should i run this command? my project is already created, it was working fine in my home workstation but in office i got this error. |
so you cloned the repo then? The cloning can be tricky, which steps you followed? |
I installed yii2 using composer from here almost 3 months ago and pushed my last changes on BitBucket on 27-11-2015 until then it was working fine because of my local copy of the project so i deleted that project from office machine because of holidays. So when i come office today i did this:
after running |
Try
Then paste here the shell messages. |
should i remove vendor folder ? |
the instructions I gave are to start a new clone on FOLDER. keep your current clone as it is, we will work on a new clone to see if we can reproduce the issue after using |
After following your steps:
it gives me error: |
a typo, sorry
|
Well got the same error while running application: Btw i've also tried your solution after running |
on your composer.json change
to
and run |
Same problem here. "extra": {
"asset-installer-paths": {
"npm-asset-library": "vendor/npm",
"bower-asset-library": "vendor/bower"
}
} it creates the following folders: vendor/bower/bower-asset This is not a permanent solution. Because when I run composer update it moves the files again. |
it should just create /vendor/bower @francoispluchino got any idea why this folder is named like that? I tried to reproduce it myself and I ran sudo composer self-update
composer global update
composer update I got no errors and I see no folder If that doesn't work I can't provide any more help sorry. |
@Faryshta Update your |
Then |
Does the trick every thing back to normal (y) thanks @Faryshta |
@fbarrento did it solved it for you too? which version of the fxp asset plugi did you installed? |
Same problem composer.json {
"name": "yiisoft/yii2-app-advanced",
"description": "Yii 2 Advanced Application Template",
"keywords": ["yii2", "framework", "advanced", "application 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": ">=5.4.0",
"yiisoft/yii2": "*",
"yiisoft/yii2-bootstrap": "*",
"yiisoft/yii2-swiftmailer": "*",
"yiisoft/yii2-jui": "*",
"bower-asset/admin-lte": "^2.0",
"bower-asset/font-awesome": "^4.0",
"bower-asset/bootbox": "*",
"bower-asset/html5shiv": "^3.0"
},
"require-dev": {
"yiisoft/yii2-debug": "~2.0",
"yiisoft/yii2-codeception": "*",
"yiisoft/yii2-faker": "*",
"yiisoft/yii2-gii": "*",
"trntv/yii2-debug-xhprof": "dev-master@dev"
},
"config": {
"process-timeout": 1800
},
"extra": {
"asset-installer-paths": {
"npm-asset-library": "vendor/npm",
"bower-asset-library": "vendor/bower"
},
"asset-registry-options": {
"npm-searchable": false,
"bower-searchable": false
},
"yii\\composer\\Installer::postCreateProject": {
"setPermission": [
{
"frontend/runtime": "0777",
"backend/runtime": "0777",
"console/runtime": "0777",
"frontend/web/assets": "0777",
"backend/web/assets": "0777"
}
]
}
}
} composer self-update
composer global require "fxp/composer-asset-plugin:1.0.3"
composer global show -i
composer global update
*Delete vendor dir composer global clear-cache
composer update Result is same:
:-(((((((((((( |
Update your fxp plugin to latest version (1.1.1), clear composer's cache and try again. |
YEEEEESSSS !!!! |
This solution! touqeershafi commented 23 days ago Thanks |
Hello. Have some problems with separated advanced app skeleton install. What i've done:
composer asset plugin installed by
composer global require "fxp/composer-asset-plugin:1.0.0-beta4"
next yii2 framework
composer global require "yiisoft/yii2:2.0.*@dev"
the app-advanced skeleton in a separate folder /home/dima/advanced
composer create-project --prefer-dist --stability=dev yiisoft/yii2-app-advanced advanced
correct paths to autoload yii2 from /frontend/web/index.php generated by init
I tried to play with @Vendor and other paths
But can't resolve the error
The file or directory to be published does not exist: /usr/home/dima/advanced/vendor/bower/jquery/dist
The text was updated successfully, but these errors were encountered: