Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to uninstall Elm package?

Tags:

elm

After I install an elm package by executing

elm package install packagename

Is there a way to uninstall the elm package besides manually deleting the dependency in elm-package.json?

like image 576
C.S.Reddy Gadipally Avatar asked May 01 '18 04:05

C.S.Reddy Gadipally


3 Answers

currently the only way to remove a package is to delete the dependency in elm-package.json

like image 122
JosephStevens Avatar answered Oct 30 '22 06:10

JosephStevens


Remove corresponding line from elm-package.json and run elm-package install. It'll ask first and then remove the package in question.

like image 37
Misha Tavkhelidze Avatar answered Oct 30 '22 07:10

Misha Tavkhelidze


The elm-json project provides an 'uninstall' option that seems to handle things properly, eg. moving them to 'indirect' dependencies when needed, otherwise removing them completely.

It is written by zwilias who is on the core team though the project includes a disclaimer that it work in progress.

In can be installed via npm. The project recommends:

npm install --global elm-json

like image 3
MichaelJones Avatar answered Oct 30 '22 08:10

MichaelJones