node.js 설치
- 프로그래밍/nuxt.js,node.js
- 2021. 7. 12.
node.js 최신버전은 centos7이상에서 하는게 편함
설치순서
1. nvm(Node Version Manager)
2. nodejs
3. npm (Node Package Manager)
4. 방화벽 설치 및 설정
1. 저장소 추가
yum repolist
2. epel (Extra Packages of Enterprise Linux) 추가
yum install epel-release
3. curl 추가
yum install curl
4. nvm설치
curl -o- https://raw.githubusercontent.com/creationix/nvm/v0.33.8/install.sh | bash
5.재부팅해야 적용됨 / 버전확인
reboot
nvm --version
6. node.js / npm 설치
nvm ls-remote
nvm install 12.16.1 //node버전
node --version
npm --version
7. 방화벽 포트
firewall-cmd --permanent --zone=public --add-port=8000/tcp
firewall-cmd --permanent --zone=public --add-port=8000/tcp
firewall-cmd --reload
systemctl restart firewalld
8. 노드js 기본 설정
출처: https://mosei.tistory.com/entry/nvm-nodejs-npm-설치-CentOS7 [씹어먹는 블로그]
'프로그래밍 > nuxt.js,node.js' 카테고리의 다른 글
node.js 채팅 구현 (0) | 2021.07.14 |
---|---|
node.js +express + forever (1) | 2021.07.12 |
nuxt.js 시작 참고 사이트 (0) | 2021.05.27 |
노드 api 서버 npm install 시 발생하는 에러 (0) | 2021.04.22 |
[초간단] nuxt.js 설치 및 개발 환경-오류해결 (0) | 2021.04.22 |