[bug] grunt uninstall #751

Closed
denji opened this Issue Apr 4, 2013 · 5 comments

Comments

Projects
None yet
4 participants

denji commented Apr 4, 2013

_npm WARN uninstall not installed "grunt"_

$ sudo npm install -g grunt-cli
/usr/local/bin/grunt -> /usr/local/lib/node_modules/grunt-cli/bin/grunt
grunt-cli@0.1.7 /usr/local/lib/node_modules/grunt-cli
├── resolve@0.3.1
├── nopt@1.0.10 (abbrev@1.0.4)
└── findup-sync@0.1.2 (lodash@1.0.1, glob@3.1.21)
$ grunt
grunt-cli: The grunt command line interface. (v0.1.7)
$ sudo npm uninstall -g grunt
npm WARN uninstall not installed in /usr/local/lib/node_modules: "grunt"

@denji denji closed this Apr 4, 2013

It would be nice to have a comment as to why the issue was closed. Does grunt not view un-installing itself as a priority? Can I manually delete the grunt directory from /usr/local/lib/node_modules, and that will be clean and neat?

Owner

tkellen commented Sep 30, 2013

NPM is responsible for installing and uninstalling modules. Yes, you can manually delete folders in node_modules, but it is generally considered a lot easier to type npm uninstall modulename, or in the case of globally installed modules, npm uninstall -g modulename.

With respect to this issue, Grunt was not installed globally, so there was nothing to remove. If you want to uninstall the Grunt command globally, remove the cli with npm uninstall -g grunt-cli.

After messing with it a while, I realized that the problem for both the original poster and myself was that we tried to remove grunt. The name of the package is grunt-cli.

Probably the OP tried to close it quietly when he realized his error. Without a comment "Oh, I gave the wrong name for the package," I didn't understand, and asked a question.

Thanks for your help, Tyler. I gave it the wrong package name. Sigh

From: Tyler Kellen [mailto:notifications@github.com]
Sent: Monday, September 30, 2013 9:42 AM
To: gruntjs/grunt
Cc: Rick Hedin
Subject: Re: [grunt] [bug] grunt uninstall (#751)

NPM is responsible for installing and uninstalling modules. Yes, you can manually delete folders in node_modules, but it is generally considered a lot easier to type npm uninstall modulename, or in the case of globally installed modules, npm uninstall -g modulename.

With respect to this issue, grunt was not installed globally, so there was nothing to remove. If you want to uninstall the grunt command globally, remove the cli with npm uninstall -g grunt-cli.


Reply to this email directly or view it on GitHubhttps://github.com/gruntjs/grunt/issues/751#issuecomment-25367997.

sudo npm uninstall modulename -g --prefix=/usr/local

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment