从 elm.json 安装软件包

install packages from elm.json

系统已安装 elm,正在尝试从 elm.json 安装软件包。

直接从 elm.json 安装软件包的过程是什么?

目前只能自己一个一个独立安装

elm 安装elm/http

运行 elm install 没有任何输入的命令将给出以下提示

Hint: In JavaScript folks run npm install to start projects. "Gotta download everything!" But why download packages again and again? Instead, Elm caches packages in /Users/kaskelotti/.elm so each one is downloaded and built ONCE on your machine. Elm projects check that cache before trying the internet. This reduces build times, reduces server costs, and makes it easier to work offline. As a result elm install is only for adding dependencies to elm.json, whereas elm make is in charge of gathering dependencies and building everything. So maybe try elm make instead?

正如提示所说,elm make 可能就是您所需要的。

如果您的 elm 缓存缺少某些依赖项,将根据需要下载它们。