按照此页面上的说明,我已运行:
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 个程序运行良好。