프로그래밍/NodeJS

Node.js 설치 및 세팅

타코코딩 2023. 9. 18. 00:11

VSC와 node.js 다운로드

 

 

터미널

터미널 > npm init > entry 에 server.js (파일명) 만 잘입력하면됨 > npm install express

yarn

설치가 안된다면 yarn 사이트에서 다운로드후 yarn install express 명령어로 다운로드 할 수 있다.

 

 

const express = require('express')
const app = express()

app.listen(1215, () => {
    console.log('http://localhost:1215 서버 확인용')
})