일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
1 | ||||||
2 | 3 | 4 | 5 | 6 | 7 | 8 |
9 | 10 | 11 | 12 | 13 | 14 | 15 |
16 | 17 | 18 | 19 | 20 | 21 | 22 |
23 | 24 | 25 | 26 | 27 | 28 |
- 카카오가고싶다
- NGINX
- error
- 보안
- centOS7
- 에러해결
- ratchet
- 네이버싫어
- php
- 기타정리
- linux #centos
- Backend
- 작업물 #영상편집 #서브컬쳐
- 개인공부
- 작업물
- php-fpm
- jquery
- 시벌이슈
- AWS
- 코딩테스트
- 키워드
- laravel
- php artisan
- 메모
- MySQL
- vagrant
- centOS
- 일상
- 키워드 정리
- 복습 #회사
- Today
- Total
개발을 간바루Joy 하게
[Centos7] nodejs 최신버전 설치 본문
//nodejs 삭제후 최신버전 설치
먼저 캐시를 지워줍니다.
npm cache clean -f
현재 설치되어있는 nodejs를 삭제 해줍니다.
sudo yum remove -y nodejs npm
Nodejs 공식 홈페이지에 접속하여 설치할 버전을 체크합니다 (ctrl+f 로 centos 검색)
저는 14버전으로 설치를 진행하였습니다.
github.com/nodesource/distributions/blob/master/README.md
nodesource/distributions
NodeSource Node.js Binary Distributions. Contribute to nodesource/distributions development by creating an account on GitHub.
github.com
nodejs를 재설치 해줍니다.
sudo yum install -y nodejs
설치확인
node -v
npm -v
//2023-04-11 추가글
nodejs 18버전은 amazon linux2, centos7등 호환이 안되는 이슈가있음 밑 링크 참고
https://github.com/nodejs/node/issues/43246
NodeJS 18 revert to building on CentOS 7, RHEL 7, Ubuntu Bionic 18.04, other other LTS distros · Issue #43246 · nodejs/node
What is the problem this feature will solve? Moving to RHEL 8 has raised the glibc version being linked against (2.28). The official Node.js Linux release binaries will only run on Linux distributi...
github.com
'프로그래밍 > Linux' 카테고리의 다른 글
Centos7 LEMP + laravel 셋팅 (0) | 2022.08.06 |
---|---|
Centos7 Root 계정 SSH 원격 접속 제한 (0) | 2021.03.31 |
[Centos7] 줫같은 SElinux 해제 (0) | 2020.05.20 |
Centos7 php-fpm(Nginx) 설정 (0) | 2020.05.13 |
Centos7 php7.2 설치 (0) | 2020.05.12 |