<?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: Deepanshu Jangra</title>
    <description>The latest articles on DEV Community by Deepanshu Jangra (@deepanshujangra).</description>
    <link>https://dev.to/deepanshujangra</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%2F1174212%2F81d106a8-d01f-4cb1-9633-bde500550829.jpg</url>
      <title>DEV Community: Deepanshu Jangra</title>
      <link>https://dev.to/deepanshujangra</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/deepanshujangra"/>
    <language>en</language>
    <item>
      <title>How to Install NVM and Node on macOS M1 Silicon in 2023</title>
      <dc:creator>Deepanshu Jangra</dc:creator>
      <pubDate>Sun, 01 Oct 2023 08:40:10 +0000</pubDate>
      <link>https://dev.to/deepanshujangra/how-to-install-nvm-and-node-on-macos-m1-silicon-in-2023-3617</link>
      <guid>https://dev.to/deepanshujangra/how-to-install-nvm-and-node-on-macos-m1-silicon-in-2023-3617</guid>
      <description>&lt;p&gt;As a software engineer working on a Mac with an M1 Silicon chip, having NVM (Node Version Manager) and Node.js installed is crucial. In 2023, setting up your development environment for Node.js on an M1 Mac is easier than ever. In this guide, we'll walk you through the steps to install NVM and Node.js, enabling you to streamline your development workflow.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Step 1: Get NVM&lt;/strong&gt;&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;
&lt;strong&gt;Check for .zshrc Profile&lt;/strong&gt;: Open a new terminal window and run the following command to check if you already have a .zshrc profile:
&lt;/li&gt;
&lt;/ol&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;   &lt;span class="nv"&gt;$ &lt;/span&gt;&lt;span class="nb"&gt;ls&lt;/span&gt; &lt;span class="nt"&gt;-a&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;If you see &lt;code&gt;.zshrc&lt;/code&gt; in the list, you can skip this step. However, if it's not there, you need to create one:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;   &lt;span class="nv"&gt;$ &lt;/span&gt;&lt;span class="nb"&gt;touch&lt;/span&gt; .zshrc
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;ol&gt;
&lt;li&gt;
&lt;strong&gt;Install NVM&lt;/strong&gt;: Now that you have a .zshrc profile, it's time to install NVM. Visit the official NVM GitHub repository [&lt;a href="https://github.com/nvm-sh/nvm#install--update-script"&gt;here&lt;/a&gt;] to find the NVM cURL install command. The command should look something like this:
&lt;/li&gt;
&lt;/ol&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;   &lt;span class="nv"&gt;$ &lt;/span&gt;curl &lt;span class="nt"&gt;-o-&lt;/span&gt; https://raw.githubusercontent.com/nvm-sh/nvm/v0.39.1/install.sh | bash
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Copy this command and paste it into your terminal. This will download and install NVM, making it available for use.&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;
&lt;strong&gt;Refresh .zshrc&lt;/strong&gt;: As this installation affects your .zshrc profile, you should run the following command to update it:
&lt;/li&gt;
&lt;/ol&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;   &lt;span class="nv"&gt;$ &lt;/span&gt;&lt;span class="nb"&gt;source&lt;/span&gt; .zshrc
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Congratulations, you now have NVM installed on your Mac!&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Step 2: Get Node&lt;/strong&gt;&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;
&lt;strong&gt;Install Node&lt;/strong&gt;: To install Node.js using NVM, simply run this command in your terminal:
&lt;/li&gt;
&lt;/ol&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;   &lt;span class="nv"&gt;$ &lt;/span&gt;nvm &lt;span class="nb"&gt;install &lt;/span&gt;node
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;This command will download and install the latest version of Node.js.&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;
&lt;strong&gt;Activate Node&lt;/strong&gt;: While Node.js is now downloaded, you need to activate it to use it. Run the following command:
&lt;/li&gt;
&lt;/ol&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;   &lt;span class="nv"&gt;$ &lt;/span&gt;nvm use node
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;This command sets the recently installed Node.js version as the active one.&lt;/p&gt;

&lt;p&gt;Conclusion:&lt;br&gt;
You've successfully set up NVM and installed Node.js on your macOS M1 Silicon-based machine. This streamlined process ensures you have the tools necessary for your development tasks in 2023. With NVM and Node.js at your disposal, you can easily manage Node.js versions and enjoy a smooth development experience on your M1 Mac.&lt;/p&gt;

&lt;p&gt;By following these steps, you'll be well-prepared to tackle your software development projects on your Mac with confidence. Happy coding!&lt;/p&gt;

</description>
      <category>mac</category>
      <category>node</category>
      <category>nvm</category>
      <category>m1</category>
    </item>
    <item>
      <title>Installing Homebrew on Apple Silicon: A Step-by-Step Guide</title>
      <dc:creator>Deepanshu Jangra</dc:creator>
      <pubDate>Sun, 01 Oct 2023 08:29:18 +0000</pubDate>
      <link>https://dev.to/deepanshujangra/installing-homebrew-on-apple-silicon-a-step-by-step-guide-131</link>
      <guid>https://dev.to/deepanshujangra/installing-homebrew-on-apple-silicon-a-step-by-step-guide-131</guid>
      <description>&lt;p&gt;As a software developer, having the right tools at your disposal is essential. Homebrew is a popular package manager for macOS that simplifies the process of installing and managing software packages. If you're using an Apple Silicon-based Mac, you might encounter some specific steps during the installation process. In this guide, we'll walk you through the steps to install Homebrew on Apple Silicon, ensuring a smooth and hassle-free experience.&lt;/p&gt;

&lt;h3&gt;
  
  
  Step 1: Open a Terminal Window
&lt;/h3&gt;

&lt;p&gt;To get started, open a terminal window. Make sure you're using the zsh shell, which is the default shell on macOS.&lt;/p&gt;

&lt;h3&gt;
  
  
  Step 2: Run the Installation Command
&lt;/h3&gt;

&lt;p&gt;Copy and paste the following command into your terminal and press Enter:&lt;/p&gt;

&lt;p&gt;&lt;code&gt;/bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)"&lt;br&gt;
&lt;/code&gt;&lt;br&gt;
This command will begin the Homebrew installation process. During the installation, if you encounter any errors, don't worry; we'll address them shortly.&lt;/p&gt;

&lt;h3&gt;
  
  
  Step 3: Handle Installation Errors
&lt;/h3&gt;

&lt;p&gt;In some cases, you might encounter errors during the installation process. If this happens, you can try running the installation command again. In most cases, running it a second time resolves the issue.&lt;/p&gt;

&lt;p&gt;After successful installation, you will likely see a message indicating "Installation successful!" However, you may also see a warning that "/opt/homebrew/bin is not in your PATH." We'll fix this in the next steps.&lt;/p&gt;

&lt;h3&gt;
  
  
  Step 4: Create the .zshrc File
&lt;/h3&gt;

&lt;p&gt;If you don't already have a .zshrc file in your home directory, you can create one by running the following command:&lt;/p&gt;

&lt;p&gt;&lt;code&gt;touch ~/.zshrc&lt;/code&gt;&lt;/p&gt;

&lt;p&gt;This command will create the .zshrc file if it doesn't already exist.&lt;/p&gt;

&lt;h3&gt;
  
  
  Step 5: Edit the .zshrc File
&lt;/h3&gt;

&lt;p&gt;Open the .zshrc file for editing using your preferred text editor. You can use TextEdit or any text editor of your choice. The .zshrc file is a hidden file, so you can reveal hidden files in Finder by pressing Shift + Command + Period (⇧⌘.).&lt;/p&gt;

&lt;p&gt;Add the following line at the end of the .zshrc file:&lt;/p&gt;

&lt;p&gt;&lt;code&gt;export PATH=/opt/homebrew/bin:$PATH&lt;/code&gt;&lt;/p&gt;

&lt;p&gt;This line adds the Homebrew bin directory to your PATH environment variable, allowing you to use Homebrew commands system-wide.&lt;/p&gt;

&lt;h3&gt;
  
  
  Step 6: Source the .zshrc File
&lt;/h3&gt;

&lt;p&gt;To make the changes in your .zshrc file take effect, run the following command in your terminal:&lt;/p&gt;

&lt;p&gt;&lt;code&gt;source ~/.zshrc&lt;/code&gt;&lt;/p&gt;

&lt;p&gt;This command reloads your shell configuration with the updated PATH variable.&lt;/p&gt;

&lt;h3&gt;
  
  
  Step 7: Verify Homebrew Installation
&lt;/h3&gt;

&lt;p&gt;To ensure that Homebrew is correctly installed and configured, run the following command:&lt;/p&gt;

&lt;p&gt;&lt;code&gt;brew help&lt;/code&gt;&lt;/p&gt;

&lt;p&gt;If Homebrew is installed and set up correctly, you will see a list of available Homebrew commands and options.&lt;/p&gt;

&lt;h3&gt;
  
  
  Conclusion:
&lt;/h3&gt;

&lt;p&gt;Congratulations! You've successfully installed Homebrew on your Apple Silicon-based Mac and configured it to work seamlessly. Now you can use Homebrew to install and manage software packages with ease, making your development tasks more efficient.&lt;/p&gt;

&lt;p&gt;By following these steps, you'll have Homebrew up and running, ready to help you with your software development projects. Enjoy the convenience of package management on your Apple Silicon Mac!&lt;/p&gt;

</description>
      <category>apple</category>
      <category>m1</category>
      <category>homebrew</category>
      <category>mac</category>
    </item>
  </channel>
</rss>
