Installing Node
Introduction
Prerequisites
In order to begin this guide, you must have completed the following:
- [Getting Started with GitHub]
- [Vercel Setup]
- [Visual Studio Code Setup]
- [Exploring Git]
What You’ll Do
- Install NVM (Node Version Manager)
- Install Node
TUTORIAL
Node Version Manager
So if you open up the github repo for the nvm you can see the installation instructions and you'll be able to copy and paste one of the commands right in your terminal to install the version manager
past it in and press enter After you presss enter another set up command will pop up in the terminal, copy and paste them and press enter
run nvm -v to confirm if you have installed the version manager
Node vs NVM
after this only the nvm manager is installed note that we still have to download node
run node -v to confirm if you have node on your computer
it should say node: command not found
the differents between nvm and node is that the nvm allows people to install any version of node with just one command. you can switch between different versions of node without uninstalling node from your computer
Troubleshooting NVM installation
Trying to EACCES permission denied with npm - how to fix: Always install node with a NVM and not through the package zip file because you may or may not have issues finding the profile in your thing...
if you are getting errors you have to make sure to always restart your terminal after installing new packages and commands.
If you still have problems after closing and opening your terminal, make sure you have the correct environment profiles in your home folder. If they don't exist the script will have nowhere to deposit the program and fail.
- what do these files mean
~ means home
Install Node with NVM
In order to install the lastest version of node with the NVM all you have to do is copy and paste this line of code into your terminal.
Click enter and once that is run you have installed node, congratulations
type node -v and click enter to confirm the version of node that you have on your computer
Install different versions of Node
if you would like to install a different version of node all you would have to do is install copy and paste this line of code with the version number you're looking for.