1

このページの指示に従って、私は実行しました:

cabal update
cabal install elm
cabal install elm-server  # (Optional) For testing your code in a browser.
cabal install elm-repl    # (Optional) For experimenting with elm in a REPL.
cabal install elm-get     # (Optional) For sharing/using elm libraries.

残念ながら、実行するelm-replと、nodejs がどこにあるかわからないことがわかります。

Elm REPL 0.3 <https://github.com/elm-lang/elm-repl#elm-repl>
Type :help for help, :exit to exit

The REPL relies on node.js to execute JavaScript code outside the browser.
    It appears that you do not have node.js installed though!
    You can install node.js from <http://nodejs.org/>. If it is already
    installed but has a different name, use the --interpreter flag.

どうすればelm-repl正しい方向を指すことができますか。他の 3 つのプログラムは今のところ問題なく動作しています。

4

1 に答える 1

2

node.js がインストールされているのに elm-repl がそれを見つけられない場合、通常、問題は node.js 実行可能ファイルが見つからないことです。実行可能ファイルが PATH にあることを確認し、その名前を確認してください。Node.js は実行可能ファイルの名前としてnodeorを使用しnodejsます (バージョンに依存すると思います)。elm-repl はそれがnode. PATH に しかない場合は、nodejsコピーして名前を変更するだけで問題nodeありません。

于 2014-10-18T07:38:20.203 に答える