Currently the Elm compiler doesn't have a package uninstall command.
Option 1: elm-json
Option 1:
elm-json
npm install --global elm-json
$ elm-json uninstall elm/file
-- PACKAGE CHANGES READY -------------------------------------------------------
I want to make some changes to your direct dependencies
- [DEL] elm/file 1.0.5
I want to make some changes to your indirect dependencies
- [DEL] elm/bytes 1.0.8
Should I make these changes? yes
Saved updated elm.json!
Option 2: elm-review-unused
Option 2:
elm-review-unused
For extra style, and the ability to remove much more than just unused packages,
elm-review
can help with the
elm-review-unused
rules:
elm-review --template jfmengels/elm-review-unused/example