<?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: Vishnu</title>
    <description>The latest articles on DEV Community by Vishnu (@whovishnu).</description>
    <link>https://dev.to/whovishnu</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%2F423233%2F9e92d63a-1411-40f9-b54e-5aa09edf92d5.png</url>
      <title>DEV Community: Vishnu</title>
      <link>https://dev.to/whovishnu</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/whovishnu"/>
    <language>en</language>
    <item>
      <title>Complete Remove/Uninstall node form mac OS</title>
      <dc:creator>Vishnu</dc:creator>
      <pubDate>Mon, 30 Jan 2023 16:45:30 +0000</pubDate>
      <link>https://dev.to/whovishnu/complete-removeuninstall-node-form-mac-os-1kln</link>
      <guid>https://dev.to/whovishnu/complete-removeuninstall-node-form-mac-os-1kln</guid>
      <description>&lt;p&gt;To remove Node.js from a Mac, follow these steps:&lt;/p&gt;

&lt;p&gt;Uninstall Node.js using npm:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;npm uninstall -g node
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Remove the Node.js executable and the npm modules:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt; rm /usr/local/bin/node
 rm -rf /usr/local/lib/node_modules 
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Remove the Node.js home directory:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;rm -rf ~/.npm
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Remove the npm and node directories from PATH:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;vi ~/.bash_profile
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Search for and delete the following lines:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;export PATH=$PATH:/usr/local/bin/npm
 export PATH=$PATH:/usr/local/bin/node
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Save and exit the file.&lt;/p&gt;

&lt;p&gt;Restart the terminal or run the following command:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;source ~/.bash_profile
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;This should remove Node.js from your Mac. You can verify the uninstallation by running the following command:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;node -v
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;If Node.js is uninstalled, you should see an error message saying that the command is not found.&lt;/p&gt;

&lt;h2&gt;
  
  
  Remove NVM from MacOS
&lt;/h2&gt;

&lt;p&gt;To remove nvm (Node Version Manager) from your Mac, follow these steps:&lt;/p&gt;

&lt;p&gt;Remove the nvm installation directory:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;rm -rf ~/.nvm
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Remove the nvm configuration from your shell profile:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;vi ~/.bash_profile
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Search for and delete the following lines:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;export NVM_DIR="$HOME/.nvm"
[ -s "$NVM_DIR/nvm.sh" ] &amp;amp;&amp;amp; \. "$NVM_DIR/nvm.sh"  # This loads nvm
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Save and exit the file.&lt;/p&gt;

&lt;p&gt;Restart the terminal or run the following command:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;source ~/.bash_profile
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;This should remove nvm from your Mac. You can verify the uninstallation by running the following command:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;nvm -v
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;If nvm is uninstalled, you should see an error message saying that the command is not found.&lt;/p&gt;

</description>
      <category>crypto</category>
      <category>blockchain</category>
      <category>web3</category>
      <category>webdev</category>
    </item>
    <item>
      <title>1/20 Coding Day</title>
      <dc:creator>Vishnu</dc:creator>
      <pubDate>Sat, 10 Dec 2022 19:40:59 +0000</pubDate>
      <link>https://dev.to/whovishnu/120-coding-day-222f</link>
      <guid>https://dev.to/whovishnu/120-coding-day-222f</guid>
      <description>&lt;h2&gt;
  
  
  hello geekies...
&lt;/h2&gt;

&lt;p&gt;First day i am going to setup react native project in macOS.&lt;br&gt;
So as we all do i search on google 'How to Setup React Native project in mac' and where i found lot of blog/post.&lt;/p&gt;

&lt;p&gt;Let me tell you first one of my bad habit is i don’t read blog, i just jump on the code example and try to understand what is going or what i need to do or which cmd i need to copy/paste.&lt;/p&gt;

&lt;p&gt;I found on google to setup React native project we need following things:&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;node&lt;/li&gt;
&lt;li&gt;android studio (for virtual device)&lt;/li&gt;
&lt;li&gt;watchman (don't know why?)&lt;/li&gt;
&lt;li&gt;Xcode (don't know why?)&lt;/li&gt;
&lt;li&gt;java (i think for apk building)&lt;/li&gt;
&lt;/ol&gt;

&lt;h2&gt;
  
  
  Lesson of the Day
&lt;/h2&gt;

&lt;p&gt;I learn one main think in mac what we install with brew so we need setup path in shell working directory.&lt;br&gt;
we can check current working directory with this cmd &lt;code&gt;echo $0&lt;/code&gt; or &lt;code&gt;ps&lt;/code&gt;. and in my case i am using &lt;code&gt;zsh&lt;/code&gt; shell.&lt;/p&gt;

&lt;p&gt;One more thing...&lt;/p&gt;

&lt;p&gt;i am using &lt;code&gt;nvm&lt;/code&gt; (node version manager) for use multiple version. For install use &lt;code&gt;brew install nvm&lt;/code&gt; cmd and after that i set nvm path in &lt;code&gt;~/.zshrc&lt;/code&gt; file&lt;/p&gt;

</description>
      <category>typescript</category>
    </item>
    <item>
      <title>How to Run Postgres Database in cmd/Terminal</title>
      <dc:creator>Vishnu</dc:creator>
      <pubDate>Fri, 16 Jul 2021 07:33:18 +0000</pubDate>
      <link>https://dev.to/whovishnu/how-to-run-postgres-database-in-cmd-terminal-2c0m</link>
      <guid>https://dev.to/whovishnu/how-to-run-postgres-database-in-cmd-terminal-2c0m</guid>
      <description>&lt;p&gt;Hello programmers, as we know to run database we need a DBMS software, so i am going to tell you all we how to run database in cmd for window or terminal for mac.&lt;/p&gt;

&lt;p&gt;let get start&lt;/p&gt;

&lt;h2&gt;
  
  
  open CMD/Terminal
&lt;/h2&gt;

&lt;p&gt;go to bin folder into database folder and then write code :&lt;/p&gt;

&lt;p&gt;&lt;code&gt;psql -h localhost -p 5440 -d database_name -U user_name&lt;/code&gt;&lt;/p&gt;

&lt;blockquote&gt;
&lt;p&gt;-h for host &lt;br&gt;
-p for port&lt;br&gt;
-d for database&lt;br&gt;
-U for user &lt;/p&gt;
&lt;/blockquote&gt;

&lt;p&gt;&lt;a href="https://res.cloudinary.com/practicaldev/image/fetch/s--xmZ6ekz1--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/81pvofct6zsxkgh69mbo.png" class="article-body-image-wrapper"&gt;&lt;img src="https://res.cloudinary.com/practicaldev/image/fetch/s--xmZ6ekz1--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/81pvofct6zsxkgh69mbo.png" alt="Run database in window"&gt;&lt;/a&gt;&lt;/p&gt;

</description>
      <category>postgres</category>
      <category>database</category>
      <category>cmd</category>
      <category>terminal</category>
    </item>
    <item>
      <title>Signup HTML file open in NodeJS server</title>
      <dc:creator>Vishnu</dc:creator>
      <pubDate>Sun, 05 Jul 2020 08:09:22 +0000</pubDate>
      <link>https://dev.to/whovishnu/signup-html-file-open-in-nodejs-server-2cid</link>
      <guid>https://dev.to/whovishnu/signup-html-file-open-in-nodejs-server-2cid</guid>
      <description>&lt;p&gt;&lt;strong&gt;Hello Developers,&lt;/strong&gt;&lt;br&gt;
In this Post, i will cover this following things :&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;create a server in Nodejs&lt;/li&gt;
&lt;li&gt;how to use experss module&lt;/li&gt;
&lt;li&gt;how to open html file in nodejs server&lt;/li&gt;
&lt;/ul&gt;

&lt;h2&gt;
  
  
  Step 1. Install NodeJS
&lt;/h2&gt;

&lt;h2&gt;
  
  
  Step 2. run &lt;code&gt;npm init&lt;/code&gt;
&lt;/h2&gt;

&lt;h2&gt;
  
  
  Step 3. now we need to create a server
&lt;/h2&gt;

&lt;p&gt;we have mainly two way &lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;create server with &lt;strong&gt;http module (inside)&lt;/strong&gt;
&lt;/li&gt;
&lt;li&gt;create server with &lt;strong&gt;express module (outside)&lt;/strong&gt;
&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;i am goning to use &lt;strong&gt;express module&lt;/strong&gt;. so we need to &lt;/p&gt;

&lt;h3&gt;
  
  
  Step 4. run this command &lt;code&gt;npm install express&lt;/code&gt;
&lt;/h3&gt;

&lt;h3&gt;
  
  
  Step 5. &lt;code&gt;npm install open&lt;/code&gt;
&lt;/h3&gt;

&lt;blockquote&gt;
&lt;p&gt;i am goning to use &lt;strong&gt;open module&lt;/strong&gt; is using open web browser after server has connect&lt;/p&gt;
&lt;/blockquote&gt;

&lt;h3&gt;
  
  
  Step 6. create a file &lt;code&gt;index.js&lt;/code&gt; and write this code
&lt;/h3&gt;

&lt;p&gt;&lt;a href="https://res.cloudinary.com/practicaldev/image/fetch/s--bG538FBh--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/i/sdi2iksloh7htrhewzb4.png" class="article-body-image-wrapper"&gt;&lt;img src="https://res.cloudinary.com/practicaldev/image/fetch/s--bG538FBh--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/i/sdi2iksloh7htrhewzb4.png" alt="index.js" width="880" height="834"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;h3&gt;
  
  
  Step 7. now create a html file &lt;code&gt;index.html&lt;/code&gt;
&lt;/h3&gt;

&lt;p&gt;&lt;a href="https://res.cloudinary.com/practicaldev/image/fetch/s--RfAZzvNJ--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/i/ma1rjtye35q5i1edg2c8.png" class="article-body-image-wrapper"&gt;&lt;img src="https://res.cloudinary.com/practicaldev/image/fetch/s--RfAZzvNJ--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/i/ma1rjtye35q5i1edg2c8.png" alt="index.html" width="880" height="1086"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;blockquote&gt;
&lt;p&gt;now question is how to open html file on nodejs server??&lt;br&gt;
we have many way to do this...&lt;br&gt;
we can use fs, http-server, express modules..&lt;br&gt;
i am going to use &lt;strong&gt;express module&lt;/strong&gt;. it's easy and popular.&lt;/p&gt;
&lt;/blockquote&gt;

&lt;h3&gt;
  
  
  Step 8. replace this code
&lt;/h3&gt;



&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;res.sendFile(`${__dirname}\\index.html`);
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;remove this code  &lt;code&gt;res.send('Welcome')&lt;/code&gt;&lt;/p&gt;

&lt;p&gt;one more thing &lt;/p&gt;

&lt;h3&gt;
  
  
  Step 9. add this script in package.json &lt;code&gt;"start": "node index.js"&lt;/code&gt;
&lt;/h3&gt;

&lt;h3&gt;
  
  
  Step 10. run this command &lt;code&gt;npm start&lt;/code&gt;
&lt;/h3&gt;

&lt;p&gt;&lt;a href="https://res.cloudinary.com/practicaldev/image/fetch/s--B7QthfG9--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/i/wpbf7fmeuw9mnshrpdru.PNG" class="article-body-image-wrapper"&gt;&lt;img src="https://res.cloudinary.com/practicaldev/image/fetch/s--B7QthfG9--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/i/wpbf7fmeuw9mnshrpdru.PNG" alt="Output" width="667" height="575"&gt;&lt;/a&gt;&lt;br&gt;
if you want to download this code. i am sharing this code on github link [&lt;a href="https://github.com/whovishnu/express-server-nodejs"&gt;https://github.com/whovishnu/express-server-nodejs&lt;/a&gt;]&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;ThankYou&lt;/strong&gt;&lt;/p&gt;

</description>
      <category>javascript</category>
      <category>node</category>
      <category>server</category>
      <category>npm</category>
    </item>
  </channel>
</rss>
