榆树'你好世界'安装elm-html时示例失败

时间:2016-05-19 09:29:27

标签: elm

尝试使用Elm 0.17的hello world示例

-- Main.elm

import Html exposing (text)

main =
  text "Hello, World!"
justin@justin-ThinkPad-X240:~/work/hello_world_elm$ elm make Main.elm --output=index.html
Some new packages are needed. Here is the upgrade plan.

  Install:
    elm-lang/core 4.0.0

Do you approve of this plan? (y/n) y
Downloading elm-lang/core
Packages configured successfully!
I cannot find module 'Html'.

Module 'Main' is trying to import it.

Potential problems could be:
  * Misspelled the module name
  * Need to add a source directory or new dependency to elm-package.json
justin@justin-ThinkPad-X240:~/work/hello_world_elm$ elm package install evancz/elm-html
To install evancz/elm-html I would like to add the following
dependency to elm-package.json:

    "evancz/elm-html": "4.0.2 <= v < 5.0.0"

May I add that to elm-package.json for you? (y/n) y


Error: Unable to find a set of packages that will work with your constraints.

justin@justin-ThinkPad-X240:~/work/hello_world_elm$ 

任何想法我可能做错了什么? Ubuntu 14.04,从下午安装Elm 0.17

谢谢!

1 个答案:

答案 0 :(得分:5)

版本evancz/elm-html中的0.17包已被elm-lang/html取代。所以你应该安装它。