Mesmo sem permissões de root é muito fácil instalar nlohmann/json no seu sistema.
Neste exemplo, vamos instalá-lo em $HOME/usr.
install_nlohmann_json.sh
git clone -b v3.11.3 https://github.com/nlohmann/json.git
cmake -DCMAKE_INSTALL_PREFIX=$HOME/usr .
make -j8 install
Check out similar posts by category:
C/C++
If this post helped you, please consider buying me a coffee or donating via PayPal to support research & publishing of new posts on TechOverflow