Server/CentOS 7
nodejs 특정버전 설치
Z_Z
2021. 10. 3. 15:10
반응형
1. Nodejs 설치여부 확인
- Nodejs repolist 확인
: yum repolist
* epel repolist 존재하지않을경우
: yum install -y epel-release
* epel repolist 존재할경우
: rpm -qa | grep nodejs
설치 여부 확인
: yum update
2. 특정 Nodejs 설치 (10.x 버전)
: curl -sL https://rpm.nodesource.com/setup_10.x | bash -
* 특정버전 설치 시 10.x 를 특정버전으로 수정
: yum install -y gcc-c++ make
: yum install -y nodejs
: node -v
: npm -v
끝.
반응형