You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Running the install command: wp package install trepmal/wp-revisions-cli (WP-CLI 1.5.0)
Results in:
Fatal error: Allowed memory size of 268435456 bytes exhausted (tried to allocate 16777224 bytes) in phar:///opt/sp/bin/wp-cli.phar/vendor/composer/composer/src/Composer/DependencyResolver/RuleSet.php on line 83
Reverted composer.json.
The text was updated successfully, but these errors were encountered:
If you run into a PHP fatal error relating to memory when running wp package install, you’re likely running out of memory.
WP-CLI uses Composer under the hood to manage WP-CLI packages. However, Composer is a bit of a memory hog, so you’ll need to increase your memory limit to accommodate it.
Even the server with 2GB is enough, it's just that your default PHP memory limit will be a lot lower than the machines maximum, yours was set to 256 MB from the error message.
Running the install command:
wp package install trepmal/wp-revisions-cli
(WP-CLI 1.5.0)Results in:
The text was updated successfully, but these errors were encountered: