반응형

# Node.js 학습_노드 설치 / VS Code 설치

## 노트 설치

  • 아래 홈페이지에서 원하는 버전 설치 (LTS 붙은게 안정적인 버전(정신건강에 좋음), Current 붙은건 최신 버전(신기술 습득))
  • https://nodejs.org/
 

Node.js

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

nodejs.org

  • 노드 설치 시 Automatically install... 반드시 체크 후 설치

리눅스(우분투 18 LTS 기준)의 경우 아래 명령어 이용하여 노드 설치.
$ sudo apt-get update
$ sudo apt-get install -y build-essential
$ sudo apt-get install curl
$ curl -sL https://deb.nodesource.com/setup_14.x | sudo -E bash --
$ sudo apt-get install -y nodejs

## VS Code 설치

 

Visual Studio Code - Code Editing. Redefined

Visual Studio Code is a code editor redefined and optimized for building and debugging modern web and cloud applications.  Visual Studio Code is free and available on your favorite platform - Linux, macOS, and Windows.

code.visualstudio.com

  • VS Code 설치 후 File > Add Folder to Workspace 클릭하여 코딩하고싶은 폴더 추가해주기. (가능하면 윈도우 계정명, 폴더명 등을 영문으로 해주는게 좋음 => 이럴경우 프로그래밍 시 고통받을 확률 업업..)

## 설치 후 확인

  • cmd 실행하여 아래 명령어로 확인
node -v

npm -v

맥/리눅스의 경우 명령어 앞에 sudo 입력
반응형

+ Recent posts