-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathnvm on ubuntu
More file actions
31 lines (20 loc) · 745 Bytes
/
nvm on ubuntu
File metadata and controls
31 lines (20 loc) · 745 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
## Node
sudo apt update
sudo apt install nodejs
sudo apt install nodejs
sudo apt install npm
node -v
## Node Version Manager
### audit the script
curl -o- https://raw.githubusercontent.com/nvm-sh/nvm/v0.39.1/install.sh
### the script can be downloaded and executed by
curl -o- https://raw.githubusercontent.com/nvm-sh/nvm/v0.39.1/install.sh | bash
### Close and reopen your terminal to start using nvm or run the following to use it now:
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
#### nvm use system
#### npm uninstall -g a_module
### Using
nvm install 18.17.1
nvm use 18.17.1