首页 > 解决方案 > 使用 Elm 0.19.1 安装 NoRedInk/elm-decode-pipeline 时出错

问题描述

我正在研究 elmprogramming.com 上的一个示例,并且一直在安装该elm-decode-pipeline软件包。特别是当我

elm install NoRedInk/elm-decode-pipeline

我收到以下消息

-- CANNOT FIND COMPATIBLE VERSION ------------------------------------- elm.json

I cannot find a version of NoRedInk/elm-decode-pipeline that is compatible with
your existing dependencies.

也许这是因为 Elm 从 0.19.0 迁移到 0.19.1?或者我做错了什么?我elm.json的是

{
    "type": "application",
    "source-directories": [
        "src"
    ],
    "elm-version": "0.19.1",
    "dependencies": {
        "direct": {
            "elm/browser": "1.0.2",
            "elm/core": "1.0.2",
            "elm/html": "1.0.0",
            "elm/http": "2.0.0",
            "elm/json": "1.1.3"
        },
        "indirect": {
            "elm/bytes": "1.0.8",
            "elm/file": "1.0.5",
            "elm/time": "1.0.0",
            "elm/url": "1.0.0",
            "elm/virtual-dom": "1.0.2"
        }
    },
    "test-dependencies": {
        "direct": {},
        "indirect": {}
    }
}

我应该怎么做才能安装软件包?谢谢你的帮助!

标签: elm

解决方案


它只是移动了。包裹现在在NoRedInk/elm-json-decode-pipeline

不过,你绝对不能因为困惑而受到责备。包文档中没有表明这一点,只有源代码存储库的描述中,也没有迹象表明旧包仅适用于 0.18。不幸的是,这只是目前包生态系统的状态,修复它似乎没有太多优先级。

确保您拥有适用于 0.19 的包的最佳方法是在包站点上搜索它。那里弹出的所有内容都应该适用于 0.19,因为您必须使用不同的搜索来搜索 0.18 包。


推荐阅读