Difference between revisions of "Template:Composer"

From Lorekeeper Wiki
Jump to navigation Jump to search
Tag: 2017 source edit
Tag: 2017 source edit
 
Line 5: Line 5:
 
| Commands are given as <code>composer [command]</code>; if you have not installed composer globally, they will be <code>php composer.phar [command]</code> instead.
 
| Commands are given as <code>composer [command]</code>; if you have not installed composer globally, they will be <code>php composer.phar [command]</code> instead.
 
|-
 
|-
| You may need to run <code>composer self-update</code> (assuming you have not recently) before installing package(s).
+
| You may need to run <code>composer self-update</code> (assuming you have not recently) before installing package(s). If possible, update to composer v2.x; you may need to use the command <code>composer self-update --2</code>.
 
|-
 
|-
 
| If feasible, run <code>composer update</code>.
 
| If feasible, run <code>composer update</code>.

Latest revision as of 20:48, 11 November 2020

Installing packages with Composer:
Commands are given as composer [command]; if you have not installed composer globally, they will be php composer.phar [command] instead.
You may need to run composer self-update (assuming you have not recently) before installing package(s). If possible, update to composer v2.x; you may need to use the command composer self-update --2.
If feasible, run composer update.
If you encounter memory issues: Locally, run composer update. Copy the composer.lock file to your site's server.
Run composer install.