首页 文章

为什么这个lein新模板失败了

提问于
浏览
0

我刚开始使用clojure web开发,但是,第二步陷入困境 .

D:\cloj\work>lein new luminus guestbook +h2
Could not find artifact luminus:lein-template:jar:? in central    
(https://repo1.maven.org/maven2/)
Could not find artifact luminus:lein-template:jar:? in clojars 
(https://clojars.org/repo/)
This could be due to a typo in :dependencies or network issues.
If you are behind a proxy, try setting the 'http_proxy' environment variable.

{:user {:java-cmd "C:\Program Files\Java\jdk1.8.0_65\bin\java.exe":plugins [[lein-ancient "0.6.10"] [luminus / lein-template "2.9.10.74"]]}
}

我错过了什么!谢谢

1 回答

  • 1

    在阅读使用Clojure电子书的Web开发时,我遇到了同样的问题 . 问题是我复制粘贴了电子书中的 profiles.clj 配置,导致一些不可见的字符被包含在内,搞砸了配置 . 我用十六进制查看器验证了这一点 .

    解决方案是手动输入配置或者如果你懒惰的话从这里复制粘贴:)

    {:user 
        {:plugins [
                [luminus/lein-template "2.9.10.74"]
            ]
        }
    }
    

    当然你也可以省略这一点,但是你将使用最新版本,这可能会在书写时发生一些变化 .

相关问题