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

[bug] grunt uninstall #751

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

[bug] grunt uninstall #751

denji opened this issue Apr 4, 2013 · 5 comments

Comments

@denji
Copy link

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 as completed Apr 4, 2013
@rickhedin
Copy link

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?

@tkellen
Copy link
Member

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.

@rickhedin
Copy link

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.

@rickhedin
Copy link

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//issues/751#issuecomment-25367997.

@gengxuelei
Copy link

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
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants