首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >Elm 'hello world‘示例在安装elm-html时失败。

Elm 'hello world‘示例在安装elm-html时失败。
EN

Stack Overflow用户
提问于 2016-05-19 09:29:26
回答 1查看 325关注 0票数 0

用Elm 0.17尝试一个hello world示例

代码语言:javascript
复制
-- Main.elm

import Html exposing (text)

main =
  text "Hello, World!"
代码语言:javascript
复制
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

谢谢!

EN

回答 1

Stack Overflow用户

回答已采纳

发布于 2016-05-19 09:50:36

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

票数 5
EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/37319157

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档