새소식

300x250
카테고리 없음

NodeJS 설치

  • -
728x90

Node JS 설치

- [다운로드] - http://nodejs.org/en/

- [참고]  Windows Binary(.exe)파일은 npm 명령이 들어가 있지 않아 불편하다.

 

[설치경로 추천] -  C:\nodejs

[설치후 환경변수 셋팅] -  path에  C:\nodejs; 추가

[설치확인방법] -  cmd에서 C:\User\사용자이름\ > node


 - 간단한 웹서버 만들기

var http = require('http');

http.createServer(function(request, response) {response.writeHead(200);

response.write("Hello, this is dog.");

response.end();}).listen(3000);

console.log('Listening on port 3000...');


300x250
Contents

포스팅 주소를 복사했습니다

이 글이 도움이 되었다면 공감 부탁드립니다.