diff --git a/src/packages.js b/src/packages.js index b8823de..28292d0 100644 --- a/src/packages.js +++ b/src/packages.js @@ -187,7 +187,7 @@ class Packages { // FIXME: npm packages have a 'package' subdirectory if (!await fs.exists(path.resolve(target, 'metadata.json'))) { - await fs.unlink(target); + await fs.remove(target); throw new Error('Invalid package'); }