Saturday, 15 August 2015

node.js - elm-repl can't find nodejs -



node.js - elm-repl can't find nodejs -

following instructions on page have run:

cabal update cabal install elm cabal install elm-server # (optional) testing code in browser. cabal install elm-repl # (optional) experimenting elm in repl. cabal install elm-get # (optional) sharing/using elm libraries.

unfortunately, when run elm-repl doesn't know nodejs is:

elm repl 0.3 <https://github.com/elm-lang/elm-repl#elm-repl> type :help help, :exit exit repl relies on node.js execute javascript code outside browser. appears not have node.js installed though! can install node.js <http://nodejs.org/>. if installed has different name, utilize --interpreter flag.

how can point elm-repl in right direction. other 3 programs work fine far.

if have node.js installed elm-repl can't find it, problem node.js executable cannot found. create sure executable on path, , check it's name is. node.js uses either node or nodejs name of executable (i think it's version dependent), elm-repl expects node. if path has nodejs, copy-and-rename node , should go.

node.js elm

No comments:

Post a Comment