nugawiki # archive of experience and knowledge

nuga@nugawiki: $ cat ./docs/$1

CentOS Node.js 설치

업데이트 2026-07-21 조회수

yum (EPEL)

yum install epel-release
yum -y install nodejs
node -v && npm -v

NodeSource (특정 버전)

yum install -y gcc-c++ make
curl -sL https://rpm.nodesource.com/setup_18.x | bash -
yum install -y nodejs

바이너리

wget https://nodejs.org/dist/v18.x.x/node-v18.x.x-linux-x64.tar.xz
tar xf node-v*.tar.xz && mv node-v* /usr/local/lib/node
echo 'export PATH=/usr/local/lib/node/bin:$PATH' >> /etc/bashrc && source /etc/bashrc

n 패키지

npm install -g n
n lts   # 또는 n 18.x
node --version

./comments