如何修复 conan ERROR: Template doesn't exist or not a folder
问题:
你想使用类似以下命令初始化 conan 项目
conan_new.sh
conan new myproject/1.0.0但是,一旦你运行它,你看到类似这样的错误消息
conan_error_output.txt
ERROR: Template doesn't exist or not a folder: myproject/1.0.0解决方案
使用 conan new 的方式在 Conan 2.0 版本中发生了变化。
现在你不指定项目名称而是指定 template!模板是类似 cmake_exe 的名称,但最容易开始的模板是 basic,因为它不需要任何参数:
conan_new_basic.sh
conan new basic你也可以使用预定义模板如 cmake_exe 来初始化:
conan_new_cmake_exe.sh
conan new cmake_exe -d name=MyProject -d version=1.0.0Check out similar posts by category:
Conan
If this post helped you, please consider buying me a coffee or donating via PayPal to support research & publishing of new posts on TechOverflow