安装elm-html时,Elm'hello world'示例失败

Jus*_*tin 0 elm

尝试使用Elm 0.17的hello world示例

-- Main.elm

import Html exposing (text)

main =
  text "Hello, World!"
Run Code Online (Sandbox Code Playgroud)
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$ 
Run Code Online (Sandbox Code Playgroud)

我有什么想法可能做错了吗?从npm安装Ubuntu 14.04,Elm 0.17

谢谢!

mar*_*osh 5

该软件包evancz/elm-htmlelm-lang/html在版本中替换0.17.所以你应该安装它.