简体   繁体   English

Windows上的启动错误“无法删除目标”

[英]Boot error on Windows “Couldn't delete target”

Well, basically I'm facing a problem just on Windows, when I run "boot run dev" on macOS or Linux, it works perfectly, but on Windows, the dream is over, the boot starts but get an error soon as it starts, this is my build.boot: 好吧,基本上我只是在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)))

Sorry about the extensive code, I think that maybe the problem is with some permission that I didn't give, I was trying to run boot on git bash, then I tried on windows powershell, the same error was ocurred, please, help me, and I'm sorry about my english. 抱歉,我的代码过多,我认为问题可能出在我未授予的某些权限上,我试图在git bash上运行启动,然后在Windows powershell上尝试运行,发生了同样的错误,请帮我,对不起我的英语。

Windows上存在已知问题,请在Windows 10上尝试。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM