명령어 설치
curl -fsSL https://deb.nodesource.com/setup_20.x | sudo bash -
sudo apt-get install -y nodejs
Nodesource Node.js DEB
Welcome to Node.js DEB repository This repository distributes the DEB packages for Node.js binaries for a comprehensive "How To Install" guide, we invite you to visit our GitHub repository Distributions
deb.nodesource.com
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
Parrot OS comes with node version 12.0 by default, but I could not install the latest nodejs package
sudo apt-get install -y nodejs Reading package lists... Done Building dependency tree... Done Reading state information... Done nodejs is already the newest version (12.22.12~dfsg-1~deb11u3). Sinc...
stackoverflow.com
'기타정보' 카테고리의 다른 글
[정보] 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 |