문제

I'm trying to use leiningen 2.3.2.

When I run:

lein new app my-stuff

the following error occours:

java.lang.Exception: project.clj must define project map
at leiningen.core.project$read.invoke(project.clj:681)
at leiningen.core.project$read.invoke(project.clj:685)
at leiningen.core.project$read.invoke(project.clj:686)
at leiningen.core.main$_main$fn__1332.invoke(main.clj:256)
at leiningen.core.main$_main.doInvoke(main.clj:252)

I used homebrew to install leiningen.

Can anyone help me?

Thanks

도움이 되었습니까?

해결책

As @Alex noted in the comments, you have a deformed project.clj file in directory where you are executing Leiningen from. Removing the file will solve your problem.

You are probably assuming Leiningen creates the template files in the current directory, while in fact it will create a new one, in your case 'my-stuff'.

라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top