首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >安装purescript-list时出错

安装purescript-list时出错
EN

Stack Overflow用户
提问于 2016-11-10 17:13:44
回答 1查看 370关注 0票数 4

我是新来的Purescript,并遵循本教程的安装。Purescript本身正在工作,我可以使用pulp psci启动CLI,但是安装purescript-list遇到了麻烦。

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

代码语言:javascript
复制
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都失败了:

代码语言:javascript
复制
$ 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

EN

回答 1

Stack Overflow用户

回答已采纳

发布于 2016-11-10 20:04:27

如果您使用的是psc版本0.10.*,您应该使用前奏曲、列表和eff 2*。如果您使用的是psc版本0.9。*您应该使用序曲、列表和eff 1*。

如果您正在使用psc 0.10.*,则可能需要将psc 0.10.*更新为9.1.0版

这个问题是由于PSC0.9和0.10与相关库之间的变化中断造成的。通过编写bower install purescript-lists --save,您将向bower询问与bower.json中指定的依赖关系版本冲突的最新依赖项。

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

https://stackoverflow.com/questions/40533419

复制
相关文章

相似问题

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