<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0" xmlns:cc="http://cyber.law.harvard.edu/rss/creativeCommonsRssModule.html">
    <channel>
        <title><![CDATA[Stories by Siddharth Nandava on Medium]]></title>
        <description><![CDATA[Stories by Siddharth Nandava on Medium]]></description>
        <link>https://medium.com/@siddharthnandava?source=rss-9596fd72449------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/1*PdCkDTbb5ERaavaQjRpGFQ.jpeg</url>
            <title>Stories by Siddharth Nandava on Medium</title>
            <link>https://medium.com/@siddharthnandava?source=rss-9596fd72449------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Thu, 03 Dec 2026 20:44:52 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@siddharthnandava/feed" rel="self" type="application/rss+xml"/>
        <webMaster><![CDATA[yourfriends@medium.com]]></webMaster>
        <atom:link href="http://medium.superfeedr.com/" rel="hub"/>
        <item>
            <title><![CDATA[ How to Fix Node.js Path Issues in VS Code (Step-by-Step Guide)]]></title>
            <link>https://medium.com/@siddharthnandava/how-to-fix-node-js-path-issues-in-vs-code-step-by-step-guide-e6edebe0af46?source=rss-9596fd72449------2</link>
            <guid isPermaLink="false">https://medium.com/p/e6edebe0af46</guid>
            <dc:creator><![CDATA[Siddharth Nandava]]></dc:creator>
            <pubDate>Sun, 12 Jan 2025 16:10:14 GMT</pubDate>
            <atom:updated>2025-01-12T16:10:14.329Z</atom:updated>
            <content:encoded><![CDATA[<p>Are you facing issues with Node.js commands not working in your VS Code terminal? 🤔 This is a common problem, especially if you use nvm (Node Version Manager) to manage multiple versions of Node.js. In this blog, we’ll walk you through a clear, step-by-step process to fix Node.js path issues and ensure a seamless experience in Visual Studio Code. 💻✨</p><h3>🛠️ Step 1: Check Your Current Node.js Path</h3><p>Start by verifying which Node.js version is currently active. Run this command in your terminal:</p><pre>which node</pre><p>You might see something like:</p><pre>/home/jarvis/.nvm/versions/node/v20.9.0/bin/node</pre><p>📌 This indicates your Node.js is installed via nvm. However, VS Code might not be using this path. Let’s fix that. 🚀</p><h3>⚙️ Step 2: Update Your Shell Configuration File</h3><p>To ensure that nvm works properly in VS Code, you must add its configuration to your shell startup file. Depending on your shell, open one of the following files:</p><pre>export NVM_DIR=&quot;$HOME/.nvm&quot;<br>[ -s &quot;$NVM_DIR/nvm.sh&quot; ] &amp;&amp; \ . &quot;$NVM_DIR/nvm.sh&quot;  # This loads nvm<br>[ -s &quot;$NVM_DIR/bash_completion&quot; ] &amp;&amp; \ . &quot;$NVM_DIR/bash_completion&quot;  # This loads nvm bash_completion</pre><p>After saving the file, reload the shell configuration:<br>source ~/.bashrc Use Bash<br>source ~/.zshrc if you’re using Zsh<br>✅ This ensures your shell knows where to find Node.js.</p><h3>Step 3: Set a Default Node.js Version</h3><p>To make sure the correct Node.js version is loaded every time, set a default version in nvm:</p><pre>nvm alias default v20.9.0</pre><p>📌 This ensures that nvm automatically uses Node.js version v20.9.0 in all new terminal sessions. 🏁</p><h3>🔁 Step 4: Restart VS Code</h3><p>After updating your shell configuration, restart VS Code to apply the changes. Open the integrated terminal and verify your Node.js version:</p><pre>node -v</pre><p>✨ If everything is set up correctly, you should see the version you configured with nvm. 🎉</p><h3>🛡️ Step 5: Verify VS Code’s Terminal Settings</h3><p>Ensure that the VS Code uses the correct shell for its terminal. Here’s how to check:</p><ol><li>Open the Command Palette (Ctrl+Shift+P or Cmd+Shift+P).</li><li>Search for Preferences: Open Settings (JSON) and click it.</li><li>Add or verify the terminal profile settings. For example:</li></ol><pre> &quot;terminal.integrated.defaultProfile.linux&quot;: &quot;bash&quot;,<br>    &quot;terminal.integrated.profiles.linux&quot;: {<br>        &quot;bash&quot;: {<br>            &quot;path&quot;: &quot;/bin/bash&quot;<br>        }<br>    }</pre><p>You can edit this file via either the nano 📝 or vim 🖥️ editor. To do so, use one of the following commands in your terminal:</p><ol><li>nano ~/.config/Code/User/settings.json ✏️</li><li>vim ~/.config/Code/User/settings.json 💻</li></ol><h3>📝 Step 6: Add Environment Variables in VS Code Settings</h3><p>If the terminal still doesn’t recognize Node.js, you can explicitly configure environment variables in VS Code:</p><ol><li>Open Settings (Ctrl+, or Cmd+,).</li><li>Search for terminal.integrated.env.linux.</li><li>Add the following configuration:</li></ol><pre>&quot;terminal.integrated.env.linux&quot;: {<br>        &quot;NVM_DIR&quot;: &quot;/home/jarvis/.nvm&quot;,<br>        &quot;PATH&quot;: &quot;/home/jarvis/.nvm/versions/node/v20.9.0/bin:${env:PATH}&quot;<br>    }</pre><p>🔑 This ensures that VS Code’s terminal uses the correct nvm path. 🛤️</p><h3>🚀 Step 7: Test the Configuration</h3><p>Open a new terminal in VS Code and test the setup by running:</p><pre>node -v</pre><p>🎯 You should now see the correct Node.js version displayed. Success! 🎉</p><h3>🎉 Conclusion</h3><p>By following these steps, you can resolve Node.js path issues in VS Code and create a smooth development environment. 🌟 Whether you’re working on a new project or managing multiple Node.js versions, this guide ensures that your tools are properly configured. Happy coding! 💻💡</p><p><strong>Note</strong>: <em>This post is also available on </em><a href="https://dev.to/siddharth_nandava/how-to-fix-nodejs-path-issues-in-vs-code-step-by-step-guide-1jc3"><em>Dev.to</em></a><em>. Feel free to check it out for additional insights and discussions on the topic.</em></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=e6edebe0af46" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>