How to fix conan new ERROR: Missing definitions for the template. Required definitions are: 'name', 'version'

Problem:

You want to initialize your conan project using a command such as

conan_new.sh
conan new cmake_exe

but you see the following error message:

conan_error_output.txt
ERROR: Missing definitions for the template. Required definitions are: 'name', 'version'

Solution

Conan wants you to specify the name and version of your package using -d name=myproject -d version=1.0.0.

Full example:

conan_new_with_name_version.sh
conan new cmake_exe -d name=MyPkg -d version=1.0.0

 


Check out similar posts by category: Conan