Skip to main content

HOW TO SETUP Node.js via NVM (Correct way)

 HOW TO SETUP node.js and NPM on windows (best way)


STEP 1: 

Download nvm-setup exe:

        nvm-setup.exe


(or)

Visit here:

https://github.com/coreybutler/nvm-windows/releases

        and download the nvm-setup.exe file



STEP 2:

After finishing nvm installation, open cmd and type: 

                                nvm --v

Now you will be able to see the installed nvm version.

This means that nvm is correctly installed on your machine.


STEP 3:

To install the latest LTS version of node. 

Run:

nvm install lts

                    (or)


STEP 4:

If you want to download any other version of node.

Run:

nvm list available


This will give you all the available version of node js.

After that, 

Run:

nvm install <version>


STEP 5

After installation is completed,

Run:

nvm list  //to view the installed node version(s) in your machine.


STEP 6: Now run this command:

         nvm use <version>


{You have successfully installed node , which also installs NPM in your machine*

 To check, run:  node -v  &  npm --v   }


Comments

Popular posts from this blog

From Registration to Networking: Designing an Alumni Platform with the Right Tech

To solve the problem of creating an Alumni Association platform for both web and mobile applications , you'll need a robust and scalable tech stack. The platform involves several functionalities, such as user registration, a donation portal, networking, a job portal, alumni directories, success story tracking, event management, and feedback systems. Here’s a breakdown of the tech stack, tools, and languages you'll likely need: 1. Frontend (Web and Mobile) Web Development : Languages : HTML5, CSS3 : For structuring and styling the user interface. JavaScript : For interactivity. Frameworks/Libraries : React (Since you are learning React, this is a great choice for the frontend) Bootstrap or Material-UI : For responsive design and pre-built components. Mobile-Responsive Design : Use CSS frameworks like Tailwind CSS . Mobile App Development : Languages/Frameworks : React Native (Since you're already familiar with JavaScript, this will allow you to build mobile apps with the...

Center and Fill a div with img src

  .image-container {   width: 100%;   height: 100vh; /* Adjust the height as needed */   display: flex;   justify-content: center;   align-items: center;   overflow: hidden; /* Ensures any overflow is hidden */ } .image-container img {   width: 100%;   height: 100%;   object-fit: cover; /* This will make the image cover the entire div */   object-position: center; /* Ensures the image is centered */ }