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

bower uninstall --remove should remove dependencies from component.json? #240

Closed
codylindley opened this issue Feb 6, 2013 · 11 comments · May be fixed by viareport/bower#9
Closed

bower uninstall --remove should remove dependencies from component.json? #240

codylindley opened this issue Feb 6, 2013 · 11 comments · May be fixed by viareport/bower#9

Comments

@codylindley
Copy link

I might be missing why this is not possible, but shouldn't there be a flag --remove since we can have a flag that --save's? When I uninstall, I want it to update component.json as well.

@satazor
Copy link
Member

satazor commented Feb 6, 2013

--save should work also for uninstall.

@codylindley
Copy link
Author

You mean it should or it does?

@satazor
Copy link
Member

satazor commented Feb 6, 2013

It's implemented, therefore it should work. If it doesn't then we got a bug.

@codylindley
Copy link
Author

Nods. Gotcha. Thank you for clarifying that. I must have missed that part in the docs.

@satazor
Copy link
Member

satazor commented Feb 6, 2013

Just for reference you can get the help for each comand with bower [command] -h.

@satazor satazor closed this as completed Feb 6, 2013
@jpcmf
Copy link

jpcmf commented Dec 4, 2014

unistall works but when i type bower update the dependencies come back...how ignore dependencies under bower update command?

@sheerun
Copy link
Contributor

sheerun commented Dec 4, 2014

bower uninstall --save

On Thu, Dec 4, 2014 at 1:09 PM, Joao Paulo Fricks notifications@github.com
wrote:

unistall works but when i type bower update the dependencies come
back...how ignore dependencies under bower update command?


Reply to this email directly or view it on GitHub
#240 (comment).

@jpcmf
Copy link

jpcmf commented Jan 19, 2015

@sheerun thank you :)

@mpathy
Copy link

mpathy commented Aug 11, 2016

$ bower install jplayer
..works, but..
$ bower uninstall jplayer -S
bower not-installed 'jplayer' cannot be uninstalled as it is not currently installed
..doesnt, while..
$ bower uninstall jPlayer -S
bower uninstall jPlayer
..works, its like its written, so it makes sense..
..but the installation should also only work case-sensitive, dont you think?

@sanchezcarlos1986
Copy link

sanchezcarlos1986 commented Feb 18, 2017

Delete the dependencies from your bower.json file, then run bower prune, and the dependencies will be deleted from the bower_components folder.

You can do the same for your NPM modules, by running npm prune.

@HorchataHTML
Copy link

Easy solution

Delete the dependency including only and exclusively the name of the dependency.

That's OK > bower uninstall bootstrap --save 👍

This is wrong > bower uninstall bootstrap#v4.0.0-beta --save 👎

This will delete the folder and the dependency.

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

Successfully merging a pull request may close this issue.

7 participants