diff --git a/src/Composer/ArtifactsPlugin.php b/src/Composer/ArtifactsPlugin.php
index <HASH>..<HASH> 100644
--- a/src/Composer/ArtifactsPlugin.php
+++ b/src/Composer/ArtifactsPlugin.php
@@ -29,7 +29,7 @@ class ArtifactsPlugin implements PluginInterface
     {
         $packagesDir = $composer->getConfig()->get('data-dir').'/packages';
 
-        if (!is_dir($packagesDir)) {
+        if (!is_dir($packagesDir) || !class_exists(\ZipArchive::class)) {
             return;
         }
Bypass artifacts plugin if ext-zip is not installed