From 8f15548770c538c724ee3b0974efc2fd8583676a Mon Sep 17 00:00:00 2001 From: Pavel Djundik Date: Thu, 27 Feb 2020 19:21:01 +0200 Subject: [PATCH] Fix not being able to uninstall packages --- src/command-line/uninstall.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/command-line/uninstall.js b/src/command-line/uninstall.js index 84c526ac..57f65f4a 100644 --- a/src/command-line/uninstall.js +++ b/src/command-line/uninstall.js @@ -15,7 +15,7 @@ program const path = require("path"); const packagesConfig = path.join(Helper.getPackagesPath(), "package.json"); - const packages = JSON.parse(fs.readFileSync(packagesConfig, "utf-8")).dependencies; + const packages = JSON.parse(fs.readFileSync(packagesConfig, "utf-8")); if ( !packages.dependencies ||