Conan Add: Remote
You are a platform engineer. Your team just built a shared logging library called super_logger/1.2.0 and uploaded it to a private Artifactory server.
conan install super_logger/1.2.0@ --build=missing Conan checks company_artifactory first, finds the package, and downloads it instantly. It never touches Conan Center. Even experts run into issues with remotes. Here is how to solve them: Pitfall 1: "Package not found" for an internal library Fix: Check the remote order. Your private remote is likely after Conan Center. Use conan remote list and re-add with --insert . Pitfall 2: Authentication errors (401 Unauthorized) Fix: You must log in: conan add remote
If you have a private fork of nlohmann/json , you must insert your private remote before Conan Center; otherwise, Conan will download the public version. 2. --force (Overwrite Existing) If you try to add a remote with a name that already exists, Conan throws an error. Use --force to update the URL of an existing remote entry. You are a platform engineer
conan remote logout <remote_name> # Clear bad credentials conan remote login <remote_name> <username> ERROR: Remote 'myrepo' already exists Fix: Remove it first or use --force to overwrite. Pitfall 4: Conan 1.x vs Conan 2.x Syntax While conan add remote works in both, Conan 2.x introduced more robust configuration via conan remote subcommands. The principles remain identical, but Conan 2.x requires --remote flags more explicitly in conan install . Always check your Conan version: It never touches Conan Center