Warning: file_get_contents(/data/phpspider/zhask/data//catemap/4/maven/6.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
如何更新Elm包?_Elm - Fatal编程技术网

如何更新Elm包?

如何更新Elm包?,elm,Elm,我在elm.json中依赖于elm/browser1.0.1版。如何使用elm更新它 { "dependencies": { "direct": { "elm/browser": "1.0.1", ... 在elm.json中手动更新它会让elm抱怨: -- INVALID PACKAGE DEPENDENCIES --------------------------------------- elm.json The

我在
elm.json
中依赖于
elm/browser
1.0.1版。如何使用
elm
更新它

{
    "dependencies": {
        "direct": {
            "elm/browser": "1.0.1",
            ...
elm.json
中手动更新它会让elm抱怨:

-- INVALID PACKAGE DEPENDENCIES --------------------------------------- elm.json

The dependencies in your elm.json are not compatible.


如果您有权在系统上安装npm软件包,那么我建议使用
elm json
软件包:

它的设计目的是“安装、升级和卸载Elm依赖项”,并且易于使用


如果您没有能力安装npm软件包,然后,我将从
elm.json
中删除
elm/browser
行,然后使用
elm安装elm/browser
elm-json
再次安装,也可以在不使用npm的情况下安装-只需在github存储库的发行版中下载可执行文件。从自述文件:
注意:这是一项正在进行的工作。可能会把你的文件弄得一团糟。小心使用。