我是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
我在这里错过了什么?
由于
Chris W
答案 0 :(得分:4)
如果你使用psc版本0.10。*你应该使用前奏曲,列表和eff v2 *。 如果你使用psc版本0.9。*你应该使用前奏曲,列表和eff v1 *。
如果您使用的是psc 0.10。*,您可能需要将纸浆更新到9.1.0版本
由于psc 0.9和0.10以及相关库之间的重大变化而出现问题。通过编写bower install purescript-lists --save
,您要求bower获取与bower.json
中指定的依赖项版本冲突的最新依赖项。