반응형
우분투에 서비스용으로 Node.js 를 설치하려는데 뭐가 맞는지 잘 모르겠었다.
맞는 버전을 설치하는지, apt-get 으로는 구버전으로 설치할것 같고;;
그래서 개인적으로는 가장 명확한 설치방법인것 같아 포스팅 한다.
Node.js GitHub 로 접근 [링크]
GitHub - nodesource/distributions: NodeSource Node.js Binary Distributions
NodeSource Node.js Binary Distributions. Contribute to nodesource/distributions development by creating an account on GitHub.
github.com
그리고 쭈욱 스크롤해서 내려가다보면 "Installation instructions" 이란 헤더가 있다.
그럼 Node.js 를 버전별로 맞게끔 분기되어 있다. 나는 서비스용으로 LTS 를 설치할 목적이었기에 "Node.js LTS (v14.x)" 를 설치하였다. 추후 버전 업데이트가 되면 여기서 LTS 로 업데이트 하는게 좀더 안정적일 것 같다.
# Using Ubuntu
curl -fsSL https://deb.nodesource.com/setup_lts.x | sudo -E bash -
sudo apt-get install -y nodejs
# Using Debian, as root
curl -fsSL https://deb.nodesource.com/setup_lts.x | bash -
apt-get install -y nodejs
왠지 뭔가 설치할 때 오피셜 설치는 참 사람마음을 편하게 해주는 듯. ㅋㅋ
반응형
'Development > Javascript | Node.js' 카테고리의 다른 글
[NPM] npm 패키지 업데이트 (0) | 2021.08.11 |
---|---|
Node.js (Express.js) 304 / GET >> 엄청느려짐 ㅠ (0) | 2021.06.07 |
NPM 패키지 만들기 (0) | 2021.05.12 |
[펌] Node.js MySql PoolCluster (0) | 2019.05.18 |
console.log textColor (0) | 2019.02.12 |
댓글