diff --git a/src/packages.js b/src/packages.js index 9ff4d46..ac5ead1 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'); }