title: tidyverse installing error : there is no package called ‘fansi’
body: <p>I installed 'tidyverse' but it was showing an error.</p>
  <pre><code>Error: package or namespace load failed for ‘tidyverse’ in loadNamespace(j &lt;- i[[1L]], c(lib.loc, .libPaths()), versionCheck = vI[[j]]):
   there is no package called ‘fansi’
  </code></pre>
  <p>So I installed 'fansi', and it was showing below.</p>
  <pre><code>&gt; install.packages(&quot;fansi&quot;)
  
    There is a binary version available but the source version is later:
        binary source needs_compilation
  fansi  0.4.2  0.5.0              TRUE
  
  Do you want to install from sources the package which needs compilation? (Yes/no/cancel) yes
  </code></pre>
  <p>But I received below error message.</p>
  <pre><code>* installing *source* package ‘fansi’ ...
  ** package ‘fansi’ successfully unpacked and MD5 sums checked
  ** using staged installation
  ** libs
  xcrun: error: invalid active developer path (/Library/Developer/CommandLineTools), missing xcrun at: /Library/Developer/CommandLineTools/usr/bin/xcrun
  ERROR: compilation failed for package ‘fansi’
  * removing ‘/Library/Frameworks/R.framework/Versions/4.1/Resources/library/fansi’
  Warning in install.packages :
    installation of package ‘fansi’ had non-zero exit status
  </code></pre>
  <p>I tried to run 'tidyverse' again, but still having the same error.
  Do you know what's causing this and how to solve?</p>