리눅스 환경에서 Node.js 와 NPM 설치하는 방법에 대해 알아보겠습니다. 운영환경 CentOS 7.6 저장소 추가 설치하려는 Node.js 버전을 확인하여 NodeSource yum 저장소를 추가합니다.
NodeSource Node.js Binary Distributions 사이트에 아래와 같은 내용이 정리되어 있습니다. Node.js v19.x # As root $ curl -fsSL https://rpm.nodesource.com/setup_19.x | bash - # No root privileges $ curl -fsSL https://rpm.nodesource.com/setup_19.x | sudo bash - Node.js v18.x # As root $ curl -fsSL https:/.....
원문 링크 : [CentOS] Node.js 및 NPM 설치