CodeIgniter Forums
I can't update via Composer - Printable Version

+- CodeIgniter Forums (https://forum.codeigniter.com)
+-- Forum: Using CodeIgniter (https://forum.codeigniter.com/forumdisplay.php?fid=5)
+--- Forum: Installation & Setup (https://forum.codeigniter.com/forumdisplay.php?fid=9)
+--- Thread: I can't update via Composer (/showthread.php?tid=82876)

Pages: 1 2


I can't update via Composer - ejimenezo - 08-29-2022

Hi everyone.
I'm new in this foroum.
I was trying to update CI version 4.1.3 to the lasted version via Composer, but i can't do it, composer say "there is nothing to install, update or delete" and if i try to update manually (copping the System Folder) there are an error. 
Can anybody help me please??


RE: I can't update via Composer - paulbalandan - 08-30-2022

Maybe your PHP version is not 7.4 or higher.


RE: I can't update via Composer - kenjis - 08-30-2022

Strange. If it is PHP 7.3, it should go to v4.1.9.


RE: I can't update via Composer - ejimenezo - 08-30-2022

(08-30-2022, 02:53 AM)paulbalandan Wrote: Maybe your PHP version is not 7.4 or higher.

My PHP version is 7.4.19


RE: I can't update via Composer - paulbalandan - 08-30-2022

Can you show the error when you manually copy the system folder?


RE: I can't update via Composer - kenjis - 08-30-2022

How did you install CI4?


RE: I can't update via Composer - ejimenezo - 08-31-2022

(08-30-2022, 08:19 PM)paulbalandan Wrote: Can you show the error when you manually copy the system folder?

[Image: view?usp=sharing]
This is the error when I coppy the System Folder manually


RE: I can't update via Composer - ejimenezo - 08-31-2022

(08-30-2022, 10:08 PM)kenjis Wrote: How did you install CI4?


I install CI4 with composer, I have been able to perform updates without problems, but the version 4.1.3 didn't allow me to update anymore


RE: I can't update via Composer - kenjis - 08-31-2022

Code:
bash-3.2$ php -v
PHP 7.4.30 (cli) (built: Jun  9 2022 09:30:10) ( NTS )
Copyright (c) The PHP Group
Zend Engine v3.4.0, Copyright (c) Zend Technologies
    with Xdebug v3.1.5, Copyright (c) 2002-2022, by Derick Rethans
    with Zend OPcache v7.4.30, Copyright (c), by Zend Technologies

Code:
bash-3.2$ php spark env

CodeIgniter v4.1.3 Command Line Tool - Server Time: 2022-08-31 18:16:10 UTC-05:00

Your environment is currently set as production.

Code:
bash-3.2$ composer update
Loading composer repositories with package information
Updating dependencies
Lock file operations: 0 installs, 2 updates, 0 removals
  - Upgrading codeigniter4/framework (v4.1.3 => v4.2.5)
  - Upgrading kint-php/kint (3.3 => 4.2.0)
Writing lock file
Installing dependencies from lock file (including require-dev)
Package operations: 0 installs, 2 updates, 0 removals
  - Upgrading kint-php/kint (3.3 => 4.2.0): Extracting archive
  - Upgrading codeigniter4/framework (v4.1.3 => v4.2.5): Extracting archive
Generating autoload files
27 packages you are using are looking for funding.
Use the `composer fund` command to find out more!
infection/extension-installer: No extensions found
No security vulnerability advisories found



RE: I can't update via Composer - ejimenezo - 09-01-2022

(08-31-2022, 04:17 PM)kenjis Wrote:
Code:
bash-3.2$ php -v
PHP 7.4.30 (cli) (built: Jun  9 2022 09:30:10) ( NTS )
Copyright (c) The PHP Group
Zend Engine v3.4.0, Copyright (c) Zend Technologies
    with Xdebug v3.1.5, Copyright (c) 2002-2022, by Derick Rethans
    with Zend OPcache v7.4.30, Copyright (c), by Zend Technologies

Code:
bash-3.2$ php spark env

CodeIgniter v4.1.3 Command Line Tool - Server Time: 2022-08-31 18:16:10 UTC-05:00

Your environment is currently set as production.

Code:
bash-3.2$ composer update
Loading composer repositories with package information
Updating dependencies
Lock file operations: 0 installs, 2 updates, 0 removals
  - Upgrading codeigniter4/framework (v4.1.3 => v4.2.5)
  - Upgrading kint-php/kint (3.3 => 4.2.0)
Writing lock file
Installing dependencies from lock file (including require-dev)
Package operations: 0 installs, 2 updates, 0 removals
  - Upgrading kint-php/kint (3.3 => 4.2.0): Extracting archive
  - Upgrading codeigniter4/framework (v4.1.3 => v4.2.5): Extracting archive
Generating autoload files
27 packages you are using are looking for funding.
Use the `composer fund` command to find out more!
infection/extension-installer: No extensions found
No security vulnerability advisories found

Code:
> php -v
PHP 7.4.30 (cli) (built: Jun  7 2022 16:24:55) ( ZTS Visual C++ 2017 x64 )
Copyright (c) The PHP Group
Zend Engine v3.4.0, Copyright (c) Zend Technologies

> php spark env
CodeIgniter v4.1.3 Command Line Tool - Server Time: 2022-09-01 08:56:27 UTC-05:00
Your environment is currently set as development.

> composer update
Loading composer repositories with package information
Updating dependencies
Nothing to modify in lock file
Installing dependencies from lock file (including require-dev)
Nothing to install, update or remove
Generating autoload files
31 packages you are using are looking for funding.
Use the `composer fund` command to find out more!
> CodeIgniter\ComposerScripts::postUpdate
No security vulnerability advisories found