如何更新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存储库的发行版中下载可执行文件。从自述文件:注意:这是一项正在进行的工作。可能会把你的文件弄得一团糟。小心使用。