我是Purescript的新手,正在按照安裝教程進行操作。 Purescript本身正在工作,我可以使用pulp psci
啓動CLI,但安裝purescript-list
會遇到麻煩。安裝purescript-list時出錯
已經輸入的命令bower install purescript-lists --save
,我得到的包名的一個長長的清單,但是當它到達purescript-eff
和purescript-prelude
我碰到一些版本衝突:顯示爲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
類似的消息。無論我選擇哪個選項,都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¯¯
非常感謝。它花了一些擺弄東西的工作 - 大腸桿菌'npm -g update pulp'只把我帶到了9.0.1,所以我不得不徹底刪除並重新安裝它。 –