Skip to main content

how to update composer

Looking at composer I first wanted to check the current version, which is actioned by running the following command

composer -V

The response I was seeing

Composer version 2.1.5 2021-07-23 10:35:47

 

 

Docker - Warning: copy(): SSL operation failed with code 1. OpenSSL Error messages:

Build the PHP base image with apache-buster using the Dockerfile.base

Since JN blocks some libraries update and pull, follow the following steps to build the base image locally.

Run the following command to build the base PHP image:
Make sure you are in the project root directory before running the command and its a fresh window after changing the proxy

Updating dependencies in Composer

This article works through the steps to update dependencies in the composer.json file to the latest version.

Use composer outdated to suggest the latest versions.

composer outdated

Whereas, to return a complete list of packages where packages that need an update are coloured red, the up-to-date ones are coloured green

composer show -l

 

Updating Composer

Running composer on a server... when running the command composer update, screen would error out.  In the site directory, composer would show 

composer --version
Composer version 1.10.24 2021-12-09 20:06:33

Whereas, the commnd

/opt/plesk/php/7.4/bin/php /usr/lib64/plesk-9.0/composer.phar --version

Composer version 2.2.5 2022-01-21 17:25:52

Ok, so composer on the server is running 2.2x.  But on my site directory, 1.x

jquery-ui-slider-pips not loading, time to move to Svelte

Have you tried to run a composer update script that has bower-asset/jquery-ui-slider-pips set?  I have and realised that jquery-ui-slider-pips package had been removed.  So I added it back, and ran the command composer update.

Subscribe to composer