반응형

[Linux] Node.js 설치


작성날짜 : 2018 08 07

환경 : Node.js 8.11.3, CentOS 6.6

 

# Source Code로 설치 시 g++ 버전 4.9.4 이상 권고

# NVM : Node의 버전을 관리

# NPM : 패키지 관리

 

1. NVM 설치


$ wget https://raw.githubusercontent.com/creationix/nvm/v0.33.11/install.sh

 


2. 권한 설정


$ chmod 755 install.sh

 


3. 스크립트 실행


$ ./install.sh

 


4. 환경변수 반영


$ source ~/.bash_profile

 


5. Node 설치


$ nvm install v8.11.3

 

 

6. 확인


$ node –v

$ npm –v

 

 

참조

https://d2fault.github.io/2018/04/30/20180430-install-and-upgrade-nodejs-or-npm/


반응형

'Linux' 카테고리의 다른 글

[Linux] 계정 별 JDK 설정  (4) 2018.09.16
[Linux] telnet 사용  (0) 2018.09.16
[Linux] MongoDB 설치  (0) 2018.09.16
[Linux] GIT Client 설정  (0) 2018.09.16
[Linux] PostgreSQL 설정  (0) 2018.08.12

+ Recent posts