我在哪里可以找到leiningen的profiles.clj在Mac上?

时间:2021-05-26 22:51:00

I am unable to locate the Leiningen profiles.clj file under .lein on my Mac. I am looking to use a previous version of Luminus by adding the following code to the profiles.clj:

我无法在Mac上找到.lein下的Leiningen profiles.clj文件。我想通过将以下代码添加到profiles.clj来使用以前版本的Luminus:

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

So when i run:

所以当我跑:

lein new luminus myproject

I use the 1.16.7 template version of luminus.

我使用了luminus的1.16.7模板版本。

Thanks

1 个解决方案

#1


It should be located at ~/.lein/profiles.clj as you're suggesting.

它应该位于〜/ .lein / profiles.clj,正如您所建议的那样。

However, if you've not had need for profiles.clj before, then you have to create it yourself, which is probably why you can't find it.

但是,如果您以前不需要profiles.clj,那么您必须自己创建它,这可能是您无法找到它的原因。

I set up a new machine recently, and I'm pretty sure that I created the file myself.

我最近设置了一台新机器,我很确定我自己创建了这个文件。

#1


It should be located at ~/.lein/profiles.clj as you're suggesting.

它应该位于〜/ .lein / profiles.clj,正如您所建议的那样。

However, if you've not had need for profiles.clj before, then you have to create it yourself, which is probably why you can't find it.

但是,如果您以前不需要profiles.clj,那么您必须自己创建它,这可能是您无法找到它的原因。

I set up a new machine recently, and I'm pretty sure that I created the file myself.

我最近设置了一台新机器,我很确定我自己创建了这个文件。