安装 elm-html 时 Elm 'hello world' 示例失败
Elm 'hello world' example fails when installing elm-html
尝试使用 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,从 npm 安装的 Elm 0.17
谢谢!
软件包 evancz/elm-html
已被版本 0.17
中的 elm-lang/html
替换。所以你应该安装它。
尝试使用 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,从 npm 安装的 Elm 0.17
谢谢!
软件包 evancz/elm-html
已被版本 0.17
中的 elm-lang/html
替换。所以你应该安装它。