Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Install elm package with a specifying version?

Tags:

elm

I am doing an Elm's tutorial. By that, the package elm/http is version 1.0.0. But when I installed, the current version is 2.0.0. And I don't how to install the package with a specifying version(here is elm/http 1.0.0).

I tried to modify the version of elm/http package to 1.0.0 in elm.json and then re-install with elm install elm/http but It's not working.

In JavaScript, I use npm i [email protected] to do that.

Many thanks!

like image 914
bird Avatar asked Feb 03 '23 18:02

bird


1 Answers

In Elm 0.19, elm install <package> just updates your elm.json file, there is no local installation of the packages. So updating the field in elm.json to 1.0.0 should be all that you need to do. elm make will see that and use the right package.

like image 162
bdukes Avatar answered Feb 11 '23 14:02

bdukes