본문 바로가기
IT/JavaScript와 Framework

Node.js 노드 설치하기

by 골든크랩 2022. 2. 16.
728x90
반응형

0. 소개

Google V8 JavaScript Engine(C++ 로 작성됨)

2008년 9월8일 Google 이 크롬 브라우저 출시.

오픈소스 엔진 웹키트 기반.

서버사이트 자바스크립트

비동기, 이벤트 기반, Non-Blocking I/O

Node.js는 OS Application 을 제작할 수 있음(참고, 일렉트론..electron.atom.io)

 

 

1. Node.js 설치

https://nodejs.org/ko/download/

 

최신버전 설치하면 됨.

현재 node-v16.14.0-x64.msi 설치함

 

설치단계에서 

Tools for Native Modules 에서 주의할게 있음.

Automatically install the necessarry tools 항목에 체크를 할 것.

 

설치가 완료되면, 

윈도우 cmd 창에으로...Install Additional Tools for Node.js

화면이 뜬다.  단순히 Enter 키를 눌러줌.

 

긴~~ 시간이 흐르고 설치가 완료되면...cmd 창에서 버전 확인하기

node -v  => v16.14.0 출력됨

npm -v   => 8.3.1 출력됨

 

참고) npm 8.5.0 으로 업그레이드

npm install -g npm@8.5.0

 

2. 개발 에디터 설치

어떤걸 사용할지는 알아서...

- 웹스톰 : http://jetbrains.com 

 

JetBrains: Essential tools for software developers and teams

JetBrains is a cutting-edge software vendor specializing in the creation of intelligent development tools, including IntelliJ IDEA – the leading Java IDE, and the Kotlin programming language.

www.jetbrains.com

- Visual Studio Code 설치

 

3. 테스트

파일명 hello.js

console.log('hello world');
 
4. 실행

커맨드창에서

node hello.js

 

5. 간단한 웹서버 설치.

아래 링크를 타고 들어가면, 간단한 웹서버 구성하는 것을 볼수 있다.

https://goldencrab.tistory.com/entry/AngularJS-%EA%B5%AC%EB%B2%84%EC%A0%84%EC%97%AC%EA%B8%B0%EC%84%A0-137-%EA%B0%9C%EB%B0%9C%ED%99%98%EA%B2%BD-%EA%BE%B8%EB%AF%B8%EA%B8%B0https://goldencrab.tistory.com/entry/AngularJS-%EA%B5%AC%EB%B2%84%EC%A0%84%EC%97%AC%EA%B8%B0%EC%84%A0-137-%EA%B0%9C%EB%B0%9C%ED%99%98%EA%B2%BD-%EA%BE%B8%EB%AF%B8%EA%B8%B0

 

 

728x90
반응형

댓글