I installed Symfony 4.2 via composer
composer create-project Symfony/website-skeleton my-project
everything works correctly, then I put the project in gitlab. a friend of mine tried to clone it on its own computer in order to work on the same project, and when he runs composer install
he got an error :
Script cache:clear returned with error code 255
Frankly, I tried everything I can find on the web and Stack Overflow but unfortunately, i didn't succeed.
Thanks in advance for any help
Finally, the problem is solved!!
First: how i did to get the error!
Second: How did we solve this!
Actually, when you make a CTRL-C and CTRL-V to the content of the symfony project folder, you are not copying everything, all the .flies (dot files example .env, .test, .gitignore) are hidden.
in order to copy the other hidden files such as .env you should open your terminal and type "cp .env (to your location)" in my case, it was "cp .env ~/Desktop/newApp"
hint: in order to display all the folders and files in a folder use "ll" instead of "ls" command
thanks, guys
In my case was that I removed some packages that I didn't need from the composer.json
but I forgot to remove them from config/bundle.php
.
So check config/bundle.php
and if you find something there that isn't right, go delete it!
Downgraded temporarily from composer 2 to composer 1. Then I had this error after doing composer req symfony/orm-pack
.
Executing script cache:clear [KO]
[KO]
Script cache:clear returned with error code 255
[...Stacktrace...]
!!
Script @auto-scripts was called via post-update-cmd
Installation failed, reverting ./composer.json to its original content.
I had to remove @auto-scripts
from my composer.json
file. Not sure if this will lead to correct beahvior, but I was just followiing a tutorial.
Turn
"post-update-cmd": [
"@auto-scripts"
]
into
"post-update-cmd": [
""
]
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With