用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来自npm
谢谢!
发布于 2016-05-19 09:50:36
包evancz/elm-html已被0.17版本中的elm-lang/html所取代。所以你应该安装它。
https://stackoverflow.com/questions/37319157
复制相似问题