【问题标题】:Error installing purescript-list安装 purescript-list 时出错
【发布时间】:2016-11-10 17:13:44
【问题描述】:

我是 Purescript 的新手,正在按照教程进行安装。 Purescript 本身正在运行,我可以使用 pulp psci 启动 CLI,但安装 purescript-list 会遇到麻烦。

输入命令bower install purescript-lists --save 后,我得到一长串包名,但是当它到达purescript-effpurescript-prelude 时,我遇到了一些版本冲突:

bower purescript-eff#^2.0.0                            cached https://github.com/purescript/purescript-eff.git#2.0.0
bower purescript-eff#^2.0.0                          validate 2.0.0 against https://github.com/purescript/purescript-eff.git#^2.0.0

Unable to find a suitable version for purescript-eff, please choose one by typing one of the numbers below:
    1) purescript-eff#^1.0.0 which resolved to 1.0.0 and is required by purescript-console#1.0.0
    2) purescript-eff#^2.0.0 which resolved to 2.0.0 and is required by purescript-st#2.0.0

Prefix the choice with ! to persist it to bower.json

? Answer

purescript-prelude 显示了类似的消息。无论我选择哪个选项,pulp buildpulp run 都会失败:

$ pulp build
* Building project in /Developer/purescript/training1
Error found:
in module PSCI.Support
at /Developer/purescript/training1/bower_components/purescript-psci-support/src/PSCI/Support.purs line 10, column 34 - line 10, column 53

  Cannot import value unsafeInterleaveEff from module Control.Monad.Eff.Unsafe
  It either does not exist or the module does not export it.


See https://github.com/purescript/purescript/wiki/Error-Code-UnknownImport for more information,
or to contribute content related to this error.


Compiling PSCI.Support
* ERROR: Subcommand terminated with exit code 1

我在这里错过了什么?

谢谢

克里斯·W

【问题讨论】:

    标签: purescript


    【解决方案1】:

    如果您使用的是 psc 版本 0.10.*,您应该使用 prelude、lists 和 eff v2*。 如果您使用的是 psc 版本 0.9.*,您应该使用 prelude、lists 和 eff v1*。

    如果您使用的是 psc 0.10.*,您可能希望将纸浆更新到版本 9.1.0

    由于 psc 0.9 和 0.10 以及相关库之间的重大更改而出现此问题。通过写bower install purescript-lists --save,你是在向bower询问与bower.json中指定的依赖版本冲突的最新依赖。

    【讨论】:

    • 非常感谢。花了一些时间摆弄才能让事情正常工作 - E.G. npm -g update pulp只带我到9.0.1,所以我只好彻底删除重新安装。
    猜你喜欢
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2020-09-12
    • 2013-10-05
    • 2013-08-15
    • 2013-11-13
    • 2017-10-02
    相关资源
    最近更新 更多