CentOS Node.js + express-generator (1) 설치

북마크 추가

 

 

 

 

 

centOS에 Node.js를 설치하는 방법입니다.

 

1. GCC 컴파일러 설치

 

yum install -y gcc-c++ make

 

 

 

2. Node.js 설치 - 여기서는 6.x 버전으로 설치 하겠습니다.

 

curl --silent --location https://rpm.nodesource.com/setup_6.x | bash -

 

 

 

yum install -y nodejs

 

 

 

설치 후 버전 확인

 

- Node.js

 

3. node 폴더 생성

/usr/local 밑에 node 폴더를 생성 하겠습니다.

 

cd /usr/local

mkdir node

 

 

 

샘플 프로젝트를 위 경로 안에 만들 것입니다.


4. express 설치

 

express는 global로 설치 합니다 (-g option)

 

npm install -g express-generator

 

 

 

/usr/lib 밑에 설치 되었다고 나옵니다.

 

여기까지 하셨다면 Node.js와 express의 설치는 끝났습니다.

 

Node.js + express의 프로젝트 생성은 다음글에서 설명하겠습니다. 

 

 

 

AD
관리자
2016-07-04 14:29
SHARE