Node란?

JavaScript로 브라우저 밖에서 서버를 구축하는 등의 코드를 실행할 수 있게 해주는 오픈소스이다.

모든 운영체제에서 사용이 가능하다.

자체 서버가 있으며  기본 포트번호는 3000번이다.

파일을 모듈 , 디렉토리를 패키지 라고 부르며 ajax 방식으로 운영된다.

npm(node package manager)이라는 패키지 관리자가 있다.

설치 주소

https://nodejs.org/en/download/releases/

 

Previous Releases | Node.js

Node.js® is a JavaScript runtime built on Chrome's V8 JavaScript engine.

nodejs.org

 

접속후 Node.js 14.4.0 찾기

 

Downloads클릭후

node-v14.4.0-x64.msi 클릭 해서 다운 받기

다운후 실행하기

 

따로 설정할 부분이 없기 때문에 next를 쭉 누른다.

설치 확인

명령 프롬프트에서 버전 확인하기

node : node 접속

npm : node 패키지관리자

C:\Users\test>node -v
v14.4.0

C:\Users\test>npm -v
6.14.5

 

node 접속하기

C:\Users\test>node
Welcome to Node.js v14.4.0.
Type ".help" for more information.
>

node 접속 해제

컨트롤 + c 두번

컨트롤 + d 두번

.exit 입력

C:\Users\test>node
Welcome to Node.js v14.4.0.
Type ".help" for more information.
> .exit

C:\Users\test>

 

 

참고사이트 : https://jtk1727.tistory.com/69

+ Recent posts