Welcome Guest, Not a member yet? Register   Sign In
composer require get error in centos 7
#7

If you are using codeigniter4/codeigniter4 as tour base CI4 framework instead of the distributed framework and appstarter versions, your composer.json would have in the post-update-cmd of the scripts section the bash script "bash admin/setup.sh". This is used in development to ensure that contributors will have the specially designed precommit hook installed in the .git folder of their local copy.

I think there was a mixup in your case. Maybe at one time you are using the development version then switched to stable version. In your updating, you forgot to change your composer.json.

Since the problem is in your scripts, you have two options here:
1. Remove the "bash admin/setup.sh" line in your composer.json
2. Run the require with the no scripts option:
Code:
composer require phpoffice/phpspreadsheet --no-scripts

Either way should do the trick.
Reply


Messages In This Thread
RE: composer require get error in centos 7 - by paulbalandan - 10-30-2020, 10:52 AM



Theme © iAndrew 2016 - Forum software by © MyBB