好吧,基本上我只是在 Windows 上遇到了一个问题,当我在 macOS 或 Linux 上运行“boot run dev”时,它运行良好,但在 Windows 上,梦想结束了,启动启动但一启动就出错,这是我的 build.boot:
(set-env!
:source-paths #{"src"}
:resource-paths #{"src" "resources"}
:dependencies '[[org.clojure/clojure "1.9.0" :scope "provided"]
[adzerk/boot-cljs "2.1.4" :scope "test"]
[adzerk/boot-reload "0.5.2" :scope "test"]
[pandeiro/boot-http "0.8.3" :scope "test"]
[nightlight "RELEASE"]
[org.clojure/clojurescript "1.9.946"]
[rum "0.10.8"]
[org.roman01la/cljss "1.5.13"]
[org.clojure/core.async "0.4.474"]
[io.replikativ/konserve "0.4.11"]
[ring/ring-core "1.6.3"]
[bidi "2.1.2"]
[congomongo "0.5.0"]
[cljs-http "0.1.44"]
[http-kit "2.2.0"]
[com.hypirion/clj-xchart "0.2.0"]])
(require
'[adzerk.boot-cljs :refer [cljs]]
'[adzerk.boot-reload :refer [reload]]
'[pandeiro.boot-http :refer [serve]]
'[nightlight.boot :refer [nightlight sandbox]])
(task-options!
aot {:namespace #{'brad.server}}
pom {:project 'brad
:version "0.1.0"
:description "FIXME: write description"
:url "http://example/FIXME"
:scm {:url "https://github.com/yourname/brad"}
:license {"Eclipse Public License"
"http://www.eclipse.org/legal/epl-v10.html"}}
jar {:main 'brad.server
:file "brad.jar"}
cljs {:ids #{"brad/admins" "brad/fisicos"}})
(deftask dev []
(comp
(watch)
(reload :asset-path "brad"
:cljs-asset-path ".")
(sandbox :file "java.policy")
(cljs :source-map true
:optimizations :none)
(target)))
(deftask run []
(comp
(serve :dir "target/brad" :port 3000)
(dev)
(nightlight :port 4000 :url "http://localhost:3000")))
(deftask build []
(comp
(cljs :optimizations :advanced
:compiler-options {:fn-invoke-direct true})
(aot)
(pom)
(uber)
(jar)
(target)))
对大量代码感到抱歉,我认为问题可能出在我没有给予的一些许可上,我试图在 git bash 上运行启动,然后我在 windows powershell 上尝试,发生了同样的错误,请帮帮我,我很抱歉我的英语。