我按照它安装了 Clojurescript快速入门指南 https://github.com/clojure/clojurescript/wiki/Quick-Start.
我将 git 存储库拉到~/clojurescript
.
CLOJURESCRIPT_HOME
is set ~/clojurescript
and clojurescript/bin
添加到系统路径。
当我尝试使用命令时cljsc
我收到以下错误
Could not find or load main class clojure.main
我该如何解决?
好吧,5年后回来。
运行时会出现此错误clj --main cljs.main --compile hello-world.core --repl
来自没有文件的目录或路径deps.edn
or cljs.jar
.
考虑目录结构https://clojurescript.org/guides/quick-start https://clojurescript.org/guides/quick-start,
hello-world #### Run that command in this directory
├─ src
│ └─ hello_world
│ └─ core.cljs
├─ cljs.jar
└─ deps.edn
i.e.
$ cd hello-world
$ clj --main cljs.main --compile hello-world.core --repl
本文内容由网友自发贡献,版权归原作者所有,本站不承担相应法律责任。如您发现有涉嫌抄袭侵权的内容,请联系:hwhale#tublm.com(使用前将#替换为@)