티스토리 뷰
오늘은 nodejs의 express라는 web framework에 대해 알아보도록 하겠습니다.
설치환경
OS ubuntu 12.10
nodejs v0.8.15
npm 1.1.66
step 1. express 설치
$ npm install express -g
※주의사항
express가 동작을 안하는 경우가 생겨 확인해 보았더니 nodejs 버전이 0.6때 로 설치가 되어 재설치 하였습니다.
참고하시기 바랍니다.
sudo apt-get install python-software-properties
sudo add-apt-repository ppa:chris-lea/node.js
sudo apt-get update
sudo apt-get install nodejs npm
또한 중간중간 이러한 오류도 발견되는 경우가 있습니다.
이럴경우에도 아래와 같이 처리해 주시기 바랍니다.
.
.
.
npm http 200 https://registry.npmjs.org/cookie/-/cookie-0.0.5.tgz
npm http 200 https://registry.npmjs.org/buffer-crc32/-/buffer-crc32-0.1.1.tgz
npm http 200 https://registry.npmjs.org/methods/-/methods-0.0.1.tgz
npm WARN package.json methods@0.0.1 No README.md file found!
npm http 200 https://registry.npmjs.org/cookie-signature/-/cookie-signature-0.0.1.tgz
npm http 200 https://registry.npmjs.org/send/-/send-0.1.0.tgz
npm http 200 https://registry.npmjs.org/debug/-/debug-0.7.0.tgz
npm http 200 https://registry.npmjs.org/connect/2.7.1
npm http GET https://registry.npmjs.org/connect/-/connect-2.7.1.tgz
step 2. express web project 생성
$ cd ~/work
[ 그림1 ] 결과화면
'Developer' 카테고리의 다른 글
chrome browser 설치하기 (0) | 2012.12.20 |
---|---|
[ java ] oracle connection pool 설정 (0) | 2012.12.14 |
resolve.conf DNS 초기화 문제 (0) | 2012.12.06 |
ANSI Code 적용하여 컬러풀한 출력하기. (0) | 2012.12.05 |
[github] github 사용법. (3) | 2012.11.27 |
- Total
- Today
- Yesterday
- Python
- 비지니스 영어
- maven
- 가정법
- 대명사 구문
- 조동사
- Python Django
- 영작
- 영문법
- 스페인 여행
- PostgreSQL
- it
- JBOSS
- memcached
- mongoDB
- ubuntu
- AWS
- 비교구문
- 여행
- nodejs
- 해외여행
- hdfs
- NGINX
- 다낭
- k8s
- redis
- Business English
- 도덕경
- hadoop
- 베트남
일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
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 | 29 | 30 |