I tried to follow the instructions from the "ClojureScript Quick Start", on Windows 10. I tried
both the Ubuntu way in WSL and the powershell way. However, both failed. Ubuntu failed with:
clj -M --main cljs.main --compile hello-world.core --repl
Failed to launch a browser:
No X11 DISPLAY variable was set, but this program performed an operation which requires it.
You can instead launch a non-browser REPL (Node or Nashorn).
You can disable automatic browser launch with this REPL option
and you can specify the listen IP address with this REPL option
Waiting for browser to connect to http://localhost:9000 ...
--->>> then how can I open browser with the web? The REPL can type, but respond nothing. (ex: (+ 1 2) give me no feedback at all)
The powershell way failed with:
java -cp "cljs.jar;src" cljs.main --compile hello-world.core --repl
--->>> then it just hang there, cannot type anything. The localhost:9000 will open, but just keep rolling/waiting, console see no "Hello World!" either.
Is there any way for me to start ClojureScript on Windows 10? docker way, docker in WSL way? any working way, please. Thanks!