Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

NPM uninstall not working #349

Open
Revadike opened this issue Jul 26, 2021 · 0 comments
Open

NPM uninstall not working #349

Revadike opened this issue Jul 26, 2021 · 0 comments

Comments

@Revadike
Copy link

Revadike commented Jul 26, 2021

@cnpm help
npm uninstall is not working

const npmInstall = require("npminstall");
const npmUninstall = require("npminstall/lib/uninstall");

(async() => {
    await npmInstall({ "pkgs": [{ "name": "npm-package-example" }], "root": process.cwd(), "storeDir": "c:/somefolder", "targetDir": "c:/somefolder" }); // works fine
    await npmUninstall({ "pkgs": [{ "name": "npm-package-example" }], "storeDir": "c:/somefolder", "targetDir": "c:/somefolder" }); // not working
})();
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant