nodejs 설치
15 May 2023 | linux nodejs
목차
개요
nodejs를 설치할때마다 까먹어서 계속 삽질을 하는것을 방지하고자 기록한다.
방법
nodejs 16버전이면
curl -sL https://deb.nodesource.com/setup_16.x | bash -
nodejs 18버전이면 (ubuntu 18 버전에서는 nodejs 버전 18 이상은 설치가 안되는 듯 하다. 종속성 꼬임 등)
curl -sL https://deb.nodesource.com/setup_18.x | bash -
이후 업데이트 하고 nodejs를 설치한다.
apt-get update && apt-get install yarn
apt-get install -y nodejs
- END -
Comments