2016-11-10 15 views
2

私はPurescriptを初めて使用しており、インストールのチュートリアルに従っています。 Purescript自体が動作しており、pulp psciを使用してCLIを開始できますが、purescript-listをインストールすると問題が発生します。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 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 
私がここで見逃している何

:私は選択したオプションに関係なく、pulp buildpulp runの両方がで失敗しますか?

おかげ

クリスW

答えて

3

あなたはPSCバージョン0.10を使用している場合。*あなたが*前奏曲、リスト、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.jsonに指定されている依存関係のバージョンと競合する最新の依存関係が表示されます。

+1

大変感謝しています。 'npm -g update pulp'は9.0.1にしかならなかったので、完全に削除して再インストールする必要がありました。 –

関連する問題