<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:dc="http://purl.org/dc/elements/1.1/">
  <channel>
    <title>DEV Community: Allan Philip Barku</title>
    <description>The latest articles on DEV Community by Allan Philip Barku (@allanphilipbarku).</description>
    <link>https://dev.to/allanphilipbarku</link>
    <image>
      <url>https://media2.dev.to/dynamic/image/width=90,height=90,fit=cover,gravity=auto,format=auto/https:%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Fuser%2Fprofile_image%2F130812%2Ff7b03771-dc95-4c8e-92e8-ac075ff36b4b.jpg</url>
      <title>DEV Community: Allan Philip Barku</title>
      <link>https://dev.to/allanphilipbarku</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/allanphilipbarku"/>
    <language>en</language>
    <item>
      <title>gyp: No Xcode or CLT version detected macOS Catalina</title>
      <dc:creator>Allan Philip Barku</dc:creator>
      <pubDate>Mon, 20 Jan 2020 14:47:54 +0000</pubDate>
      <link>https://dev.to/allanphilipbarku/gyp-no-xcode-or-clt-version-detected-macos-catalina-4pfo</link>
      <guid>https://dev.to/allanphilipbarku/gyp-no-xcode-or-clt-version-detected-macos-catalina-4pfo</guid>
      <description>&lt;h2&gt;
  
  
  gyp: No Xcode or CLT version
&lt;/h2&gt;

&lt;p&gt;Did you recently update your macOS Catalina to version 10.15.2? If you did, then you probably in the same boat too. What I immediately noticed from my terminal is this new shinny error about gyp: No Xcode or CLT version detected any time I ran either yarn install or npm install&lt;br&gt;
&lt;/p&gt;

&lt;p&gt;&lt;code&gt;gyp: No Xcode or CLT version detected!&lt;br&gt;
gyp ERR! configure error&lt;/code&gt;&lt;br&gt;
&lt;/p&gt;

&lt;p&gt;Well if you are wondering if that was my entire error? It is not even close. The line goes on and on. The funny thing is am so sure I have command line tools installed. The result of&lt;br&gt;
&lt;br&gt;
 &lt;code&gt;xcode-select --install&lt;/code&gt;&lt;br&gt;
&lt;br&gt;
 should start the reinstallation process but if you get the result in the image below then you already have command line tools installed&lt;/p&gt;

&lt;p&gt;&lt;a href="https://res.cloudinary.com/practicaldev/image/fetch/s--Z2xtGHL_--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://thepracticaldev.s3.amazonaws.com/i/nxz6m4kbmlwqhzvkyeug.png" class="article-body-image-wrapper"&gt;&lt;img src="https://res.cloudinary.com/practicaldev/image/fetch/s--Z2xtGHL_--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://thepracticaldev.s3.amazonaws.com/i/nxz6m4kbmlwqhzvkyeug.png" alt="xcode-select: error: command line tools are already installed, use “Software Update” to install updates"&gt;&lt;/a&gt;&lt;/p&gt;
&lt;h2&gt;
  
  
  Solution
&lt;/h2&gt;

&lt;p&gt;Reinstall &lt;a href="https://anansewaa.com/install-command-line-tools-on-macos-catalina/"&gt;command line tools&lt;/a&gt; by removing the previously installed version&lt;/p&gt;
&lt;h3&gt;
  
  
  Step 1
&lt;/h3&gt;

&lt;p&gt;First, get the location of the installed command line tools by running the command below:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight"&gt;&lt;pre class="highlight plaintext"&gt;&lt;code&gt;xcode-select --print-path
&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;

&lt;p&gt;&lt;br&gt;
 the result of the above command&lt;br&gt;
&lt;br&gt;
 &lt;code&gt;/Library/Developer/CommandLineTools&lt;/code&gt;&lt;br&gt;
&lt;/p&gt;

&lt;h3&gt;
  
  
  Step 2
&lt;/h3&gt;

&lt;p&gt;Knowing the path to the currently installed command line tools from the previous step, You can now go ahead and remove it from the system. For the next set of commands, you need sudo privileges to run successfully.&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight"&gt;&lt;pre class="highlight plaintext"&gt;&lt;code&gt;sudo rm -r -f /Library/Developer/CommandLineTools
&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;



&lt;p&gt;Provide the root password to remove the command line tools. If you already have git installed, you would get a prompt to guide you through the installation of command line developer tools.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://res.cloudinary.com/practicaldev/image/fetch/s--WDzkMBVY--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://thepracticaldev.s3.amazonaws.com/i/t8ndwr9a87kml4fr3i1c.png" class="article-body-image-wrapper"&gt;&lt;img src="https://res.cloudinary.com/practicaldev/image/fetch/s--WDzkMBVY--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://thepracticaldev.s3.amazonaws.com/i/t8ndwr9a87kml4fr3i1c.png" alt="Prompt to reinstall command line developer tools"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Click on install and follow the rest of the instructions in prompt to reinstall command line developer tools. If for some reasons, you do not get the prompt right after uninstalling your previous command line developer tools, no need to panic. Run the following command to get the prompt.&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight"&gt;&lt;pre class="highlight plaintext"&gt;&lt;code&gt;xcode-select --install
&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;



&lt;p&gt;&lt;a href="https://res.cloudinary.com/practicaldev/image/fetch/s--vUO2PVXw--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://thepracticaldev.s3.amazonaws.com/i/8m78e94b4k4hh6bud6ll.png" class="article-body-image-wrapper"&gt;&lt;img src="https://res.cloudinary.com/practicaldev/image/fetch/s--vUO2PVXw--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://thepracticaldev.s3.amazonaws.com/i/8m78e94b4k4hh6bud6ll.png" alt="Prompt after running xcode-select -instal"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Click on install and then agree to the licence to proceed with the installation. Depending on your internet speed it will take some time for the system to complete the download of the command line developer tools. The installation process should proceed immediately after a successful download. Look out for the done button as shown in the image below to confirm command line tools is successfully installed.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://res.cloudinary.com/practicaldev/image/fetch/s--hUvDSu5z--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://thepracticaldev.s3.amazonaws.com/i/knsp5k32uar87r2yaa3k.png" class="article-body-image-wrapper"&gt;&lt;img src="https://res.cloudinary.com/practicaldev/image/fetch/s--hUvDSu5z--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://thepracticaldev.s3.amazonaws.com/i/knsp5k32uar87r2yaa3k.png" alt="Done"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;With the reinstallation of the command line developer tools the gyp: No Xcode or CLT version detected error message should disappear when you run any yarn or npm commands from the command line.&lt;/p&gt;

</description>
      <category>commandlinetools</category>
      <category>macos</category>
      <category>xcode</category>
      <category>devops</category>
    </item>
    <item>
      <title>Install Command Line Tools on macOS Catalina</title>
      <dc:creator>Allan Philip Barku</dc:creator>
      <pubDate>Fri, 17 Jan 2020 11:53:34 +0000</pubDate>
      <link>https://dev.to/allanphilipbarku/install-command-line-tools-on-macos-catalina-559k</link>
      <guid>https://dev.to/allanphilipbarku/install-command-line-tools-on-macos-catalina-559k</guid>
      <description>&lt;h2&gt;
  
  
  macOS Catalina
&lt;/h2&gt;

&lt;p&gt;Before we get right to how to install command line tools on macOS, let us look at what macOS Catalina is all about. Apple just made available a major release of its macOS codenamed macOS Catalina (version 10.15). macOS Catalina is the sixteenth release of Apple’s desktop operating system for Macintosh computers. So with the release of macOS Catalina, we say goodbye to &lt;a href="https://en.wikipedia.org/wiki/MacOS_Mojave"&gt;macOS Mojave (version 10.14)&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;macOS Catalina is the first of its kind to support only 64-bit applications and activation lock. Read more about all the new feature of macOS Catalina from &lt;a href="https://www.apple.com/macos/catalina/"&gt;apple.com&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Command-line tools on macOS Catalina is essential to running of commands and development task. Just like with all new versions of macOS you have to install command-line tools to run commands. The good news is the procedure has not changed much across the various versions of macOS&lt;/p&gt;

&lt;h2&gt;
  
  
  Install Command Line Tools
&lt;/h2&gt;

&lt;p&gt;Open your terminal to begin the process of installing command-line tools on macOS Catalina. With your terminal opened, type the command below into the prompt and press the return key to execute it. After executing the command below a pop-up window should open with the option to install. The popped-up window should look similar to the image below&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight"&gt;&lt;pre class="highlight plaintext"&gt;&lt;code&gt;xcode-select --install

&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;



&lt;p&gt;&lt;a href="https://res.cloudinary.com/practicaldev/image/fetch/s--5kNxQtYv--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://thepracticaldev.s3.amazonaws.com/i/75r0e246fwbp1147xnbb.png" class="article-body-image-wrapper"&gt;&lt;img src="https://res.cloudinary.com/practicaldev/image/fetch/s--5kNxQtYv--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://thepracticaldev.s3.amazonaws.com/i/75r0e246fwbp1147xnbb.png" alt="Installation confirmation window"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Subsequently, click on the Install button to proceed with the installation of command-line developer tools. Most importantly, as with every application, you have to agree to the license to proceed with the installation. Hence click agree on the license agreement window to continue with the installation.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://res.cloudinary.com/practicaldev/image/fetch/s--S7Itk7bK--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://thepracticaldev.s3.amazonaws.com/i/0qp8esbaq6819tb9d0w2.png" class="article-body-image-wrapper"&gt;&lt;img src="https://res.cloudinary.com/practicaldev/image/fetch/s--S7Itk7bK--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://thepracticaldev.s3.amazonaws.com/i/0qp8esbaq6819tb9d0w2.png" alt="License Agreement window"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Therefore, as a result of agreeing to license the download the command line tools is triggered. After that, the installation will kick in and should not take too long.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://res.cloudinary.com/practicaldev/image/fetch/s--Xczbm9Aa--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://thepracticaldev.s3.amazonaws.com/i/9uvw04mnr1gosozhvb5i.png" class="article-body-image-wrapper"&gt;&lt;img src="https://res.cloudinary.com/practicaldev/image/fetch/s--Xczbm9Aa--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://thepracticaldev.s3.amazonaws.com/i/9uvw04mnr1gosozhvb5i.png" alt="the confirmation window that shows command line developer tools is being downloaded"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;&lt;a href="https://res.cloudinary.com/practicaldev/image/fetch/s--zQGas1a0--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://thepracticaldev.s3.amazonaws.com/i/j5rfmfwhvnt05dl6p4wb.png" class="article-body-image-wrapper"&gt;&lt;img src="https://res.cloudinary.com/practicaldev/image/fetch/s--zQGas1a0--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://thepracticaldev.s3.amazonaws.com/i/j5rfmfwhvnt05dl6p4wb.png" alt="Installation screen"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Finally, click on the Done button to complete the installation process.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://res.cloudinary.com/practicaldev/image/fetch/s--nQHzjIO3--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://thepracticaldev.s3.amazonaws.com/i/05vjz6jnv6inyir7wdza.png" class="article-body-image-wrapper"&gt;&lt;img src="https://res.cloudinary.com/practicaldev/image/fetch/s--nQHzjIO3--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://thepracticaldev.s3.amazonaws.com/i/05vjz6jnv6inyir7wdza.png" alt="Final Step"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;After that run some beautiful code from the terminal. In conclusion, run your commands from the terminal to confirm the successful installation of command-line tools on macOS Catalina.&lt;/p&gt;

&lt;p&gt;Originally published at &lt;a href="https://anansewaa.com/install-command-line-tools-on-macos-catalina/"&gt;https://anansewaa.com&lt;/a&gt; on October 11, 2019&lt;/p&gt;

</description>
      <category>macoscatalina</category>
      <category>commandlinetools</category>
      <category>development</category>
    </item>
    <item>
      <title>Vue packages version mismatch error fix</title>
      <dc:creator>Allan Philip Barku</dc:creator>
      <pubDate>Thu, 16 Jan 2020 09:47:28 +0000</pubDate>
      <link>https://dev.to/allanphilipbarku/vue-packages-version-mismatch-error-fix-4lbm</link>
      <guid>https://dev.to/allanphilipbarku/vue-packages-version-mismatch-error-fix-4lbm</guid>
      <description>&lt;p&gt;Approachable, versatile and performant are the words used to describe Vue.js on their website. Vue (pronounced /vjuː/, like view) is a progressive framework for building user interfaces. Unlike other monolithic frameworks, Vue is designed from the ground up to be incrementally adoptable.&lt;/p&gt;

&lt;p&gt;The core library is focused on the view layer only and is easy to pick up and integrate with other libraries or existing projects. On the other hand, Vue is also perfectly capable of powering sophisticated Single-Page Applications when used in combination with modern tooling and supporting libraries.&lt;/p&gt;

&lt;p&gt;Vue is widely used with Laravel framework, By default, fresh Laravel applications contain an ExampleComponent.vue Vue component located in the directory. The file ExampleComponent.vue is an example of a single file Vue component which defines its JavaScript and HTML template in the same file. Single file components provide a very convenient approach to building JavaScript driven applications.&lt;/p&gt;

&lt;p&gt;Vue packages version mismatch error occurs when Vue and Vue-template-compiler version numbers are different.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://res.cloudinary.com/practicaldev/image/fetch/s--gUT9Es_5--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://thepracticaldev.s3.amazonaws.com/i/80k4jrhn0okmy4v32l20.png" class="article-body-image-wrapper"&gt;&lt;img src="https://res.cloudinary.com/practicaldev/image/fetch/s--gUT9Es_5--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://thepracticaldev.s3.amazonaws.com/i/80k4jrhn0okmy4v32l20.png" alt="Vue and Vue-template-compiler package mismatch"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;As shown in the image above, my Vue version is higher than that of the Vue-template-compiler, this causes things to not work correctly. Make sure to use the same version for both. Specifying the exact version of Vue and Vue-template-compiler rather than leaving it up to npm (node package manager) to install or yarn to figure out dependencies helps keep both in sync hence no Vue packages version mismatch.&lt;/p&gt;

&lt;h2&gt;
  
  
  How I got it to work
&lt;/h2&gt;

&lt;p&gt;Since the version of the Vue-template-compiler is older than that of the Vue I decided to update it to same version number as the Vue thus 2.5.16 In your case the number might not be same as mine so replace the version number with what you see in your error message in the following command&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight"&gt;&lt;pre class="highlight plaintext"&gt;&lt;code&gt;npm install vue-template-compiler@2.5.16 --save-dev

&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;



&lt;p&gt;&lt;a href="https://res.cloudinary.com/practicaldev/image/fetch/s---FFoeY3G--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://thepracticaldev.s3.amazonaws.com/i/1ziu5vgm554zxwluqjk7.png" class="article-body-image-wrapper"&gt;&lt;img src="https://res.cloudinary.com/practicaldev/image/fetch/s---FFoeY3G--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://thepracticaldev.s3.amazonaws.com/i/1ziu5vgm554zxwluqjk7.png" alt="Alt Text"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;The above command would fix the version mismatch error as shown in the accompanying image above.&lt;/p&gt;

</description>
      <category>vue</category>
    </item>
  </channel>
</rss>
