Fix not being able to uninstall packages
This commit is contained in:
parent
d99d56fe81
commit
8f15548770
@ -15,7 +15,7 @@ program
|
|||||||
const path = require("path");
|
const path = require("path");
|
||||||
|
|
||||||
const packagesConfig = path.join(Helper.getPackagesPath(), "package.json");
|
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 (
|
if (
|
||||||
!packages.dependencies ||
|
!packages.dependencies ||
|
||||||
|
Loading…
Reference in New Issue
Block a user