명령어 설치
curl -fsSL https://deb.nodesource.com/setup_20.x | sudo bash -
sudo apt-get install -y nodejs
nvm으로 설치
Remove old nodejs and npm if installed:
- sudo apt remove -y npm
- sudo apt remove -y nodejs
Create .bashrc if it does not exists. For me there was only the .zshrc by default on Parrot OS.
- touch ~/.bashrc
Get nvm via curl:
- curl -o- https://raw.githubusercontent.com/nvm-sh/nvm/v0.39.0/install.sh | bash
- source ~/.bashrc
Install Node with nvm:
- nvm install node (installs the latest stable version)
Check if you have the version you like. Type nvm if you wanna see how to install or switch to other versions.
- node --version
Now run your ng command again to check if it work
'기타정보' 카테고리의 다른 글
[정보] leantime .env 파일(naver smtp) (0) | 2024.01.09 |
---|---|
[정보] 네트워크 라우팅 설정 (0) | 2024.01.07 |
[정보] 실습 시 빠르게 지식을 흡수하는 방법 (0) | 2023.11.23 |
[정보] 내가 생각하는 DevSecOps (0) | 2023.11.21 |
[정보] 온라인 드로잉(차트) 툴 추천(4종) (0) | 2023.09.25 |