node
This commit is contained in:
parent
7fc8299ad6
commit
255cee376a
@ -26,7 +26,7 @@ npm config get registry
|
||||
|
||||
- if old nodejs still exist
|
||||
|
||||
> sudo apt-get purge nodejs
|
||||
> sudo apt purge nodejs
|
||||
|
||||
|
||||
### node && yarn
|
||||
@ -36,9 +36,18 @@ npm config get registry
|
||||
|
||||
curl -sS https://dl.yarnpkg.com/debian/pubkey.gpg | sudo apt-key add -
|
||||
echo "deb https://dl.yarnpkg.com/debian/ stable main" | sudo tee /etc/apt/sources.list.d/yarn.list
|
||||
sudo apt-get update && sudo apt-get install yarn
|
||||
sudo apt update && sudo apt install yarn
|
||||
|
||||
sudo yarn global add n
|
||||
sudo n stable
|
||||
|
||||
```
|
||||
|
||||
|
||||
### nvm
|
||||
|
||||
```bash
|
||||
|
||||
https://github.com/nvm-sh/nvm
|
||||
curl -o- https://raw.githubusercontent.com/nvm-sh/nvm/v0.39.7/install.sh | bash
|
||||
```
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user