diff options
Diffstat (limited to 'lib/uninstall.js')
-rw-r--r-- | lib/uninstall.js | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/lib/uninstall.js b/lib/uninstall.js index 71a2a158d..c181fdc4e 100644 --- a/lib/uninstall.js +++ b/lib/uninstall.js @@ -56,13 +56,14 @@ class Uninstaller extends Installer { } loadArgMetadata (next) { - this.remove = this.args.map(function (arg) { return {name: arg} }) - this.args = [] + this.args = this.args.map(function (arg) { return {name: arg} }) next() } loadAllDepsIntoIdealTree (cb) { validate('F', arguments) + this.remove = this.args + this.args = [] log.silly('uninstall', 'loadAllDepsIntoIdealTree') const saveDeps = getSaveType() |