October: Error while installing via composer

Created on 4 Jun 2019  路  13Comments  路  Source: octobercms/october

  • OctoberCMS Build: 1.0
  • PHP Version: 7.3

Description:

composer create-project october/october .

Loading composer repositories with package information
Updating dependencies (including require-dev)
Package operations: 87 installs, 0 updates, 0 removals
  - Installing wikimedia/composer-merge-plugin (dev-master 73e4ed4): Loading from cache
Plugin installation failed, rolling back
  - Removing wikimedia/composer-merge-plugin (dev-master 73e4ed4)                                                                   
  [RuntimeException]                                                           
  Could not delete /home/vagrant/october.home/vendor/wikimedia/composer-merge  
  -plugin   /src/Merge:  

Screenshot from 2019-06-04 19-38-42

Question third party

Most helpful comment

Hi Luke,Ben,

I've updated both vagrant and Homestead to latest versions (2.2.7 and 9.5.1 respectively) and now the installation works fine. Thanks for the help!

All 13 comments

@yaroslawww You may need to reset the permissions of your vendor folder, and make sure that all folders and files within are owned by your user before trying composer update again.

Runing chmod 777 -R did not solve this problem! I don't think it is a permission issue, and someone should try reproducing this issue. This only happens with composer create-project

@Fenn-CS I use composer create-project and composer update on October several times a week, even just yesterday, and I have seen the wikimedia/composer-merge-plugin being installed, so I can vouch that it is working.

Alright! I would take a closer look. I used the alternative installer.

I have the exact same issue. (Also have PHP 7.3)

octobercms-install-error

@tineklancar that doesn't look like the same problem. Try removing your vendor directory and composer.lock and running composer update

Thanks @LukeTowers for getting back to me unfortunately removing both and rerunning composer update has no effect. I still get the same error message.

try composer dump-autoload too

unfortunately that has no effect either either. I'm left with only wikimedia/composer-merge-plugin in my vendors folder where as the error message says there is no MergePlugin.php file (there are some others). I've tried deleting it, re-running upload and install, clearing composer cache ... nothing seems to work :/

P.S. I can use the cli installer instead, i was just hoping to use composer and I thought I might not be the only one.

You should be able to use composer @tineklancar.

What are the exact steps you're taking from scratch?

I wonder if it's something to do with Vagrant - both cases reported in here are using that.

Hi Luke,Ben,

I've updated both vagrant and Homestead to latest versions (2.2.7 and 9.5.1 respectively) and now the installation works fine. Thanks for the help!

I had the same problem doing "composer install" on a pristine Homestead VM setting up October. I hit this error while running "composer install" from inside the VM. Running it on the local host in the mapped folder root (not in the VM) worked fine. There seems to be some sort of permissions problem in the VM as stated above.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

mittultechnobrave picture mittultechnobrave  路  3Comments

lukaszbanas-extremecoding picture lukaszbanas-extremecoding  路  3Comments

mittultechnobrave picture mittultechnobrave  路  3Comments

EbashuOnHolidays picture EbashuOnHolidays  路  3Comments

m49n picture m49n  路  3Comments