How to install and use NVM (Node Version Manager) to switch NodeJS Versions

  Рет қаралды 204

Coder Gautam

Coder Gautam

Күн бұрын

Today lets see How to install and use NVM (Node Version Manager) to switch NodeJS Versions. This works in Windows, Mac, and Linux. NVM stands for Node Version Manager and is a popular way for you to manage multiple versions of nodejs at once and easily switch between them.
Commands:
1. curl o raw.githubuser... | bash
I would recommend you restart terminal after this (and you can be done), but if you choose not to, then run the following commands to finish set up.
2. export NVM_DIR="$HOME/.nvm"
[ -s "$NVM_DIR/nvm.sh" ] && \. "$NVM_DIR/nvm.sh" # This loads nvm
[ -s "$NVM_DIR/bash_completion" ] && \. "$NVM_DIR/bash_completion" # This loads nvm bash_completion
3. export NVM_DIR="$([ -z "${XDG_CONFIG_HOME-}" ] && printf %s "${HOME}/.nvm" || printf %s "${XDG_CONFIG_HOME}/nvm")"
[ -s "$NVM_DIR/nvm.sh" ] && \. "$NVM_DIR/nvm.sh" # This loads nvm
Links:
GUIDE: github.com/nvm...
Nvm-Windows install: github.com/cor...
Install cURL for Mac (optional): formulae.brew....

Пікірлер: 1
@renangranatodutra222
@renangranatodutra222 Жыл бұрын
Thank you so much for this tutorial bro :D
How to use the OpenAI Vision API in NodeJS
6:57
Coder Gautam
Рет қаралды 1,4 М.
МЕБЕЛЬ ВЫДАСТ СОТРУДНИКАМ ПОЛИЦИИ ТАБЕЛЬНУЮ МЕБЕЛЬ
00:20
Остановили аттракцион из-за дочки!
00:42
Victoria Portfolio
Рет қаралды 3,3 МЛН
What happens when you call the owner a coward...
1:00
Coder Gautam
Рет қаралды 178
How to Convert JavaScript to Mobile Apps for Android and iOS
3:57
MobiLoud - Turn Your Website Into a Mobile App
Рет қаралды 30 М.
No, Einstein Didn’t Solve the Biggest Problem in Physics
8:04
Sabine Hossenfelder
Рет қаралды 295 М.
How to create a simple Custom GPT Action using NodeJS API
5:12
The swordbattle vr experience
0:53
Coder Gautam
Рет қаралды 129
something i'm working on...
0:13
Coder Gautam
Рет қаралды 126