我是新来的Purescript,并遵循本教程的安装。Purescript本身正在工作,我可以使用pulp psci启动CLI,但是安装purescript-list遇到了麻烦。
输入命令bower install purescript-lists --save后,我得到了一个很长的包名列表,但是当它到达purescript-eff和purescript-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 build和pulp 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
发布于 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中指定的依赖关系版本冲突的最新依赖项。
https://stackoverflow.com/questions/40533419
复制相似问题