-
[NodeJs-신입]2일차 - 개발환경설정- II편( ver 22.09.01)신입개발자-교육/Node(Nest.js) 2022. 9. 26. 08:46
<웹개발자> 1. NVM (Node Version Manager) 설치
curl -o- https://raw.githubusercontent.com/nvm-sh/nvm/<최신버전>/install.sh | bash wget -qO- https://raw.githubusercontent.com/nvm-sh/nvm/<최신버전>/install.sh | bash # 설치후 적용 source /<사용자홈>/.bashrc # WSL의 경우 root로 기본사용자 설정(개발의 용이성 위해서 root 사용) source /root/.bashrc
자세한 사항은 공식 홈페이지 확인
2. 프로젝트 생성 및 실행
1) 프로젝트 생성
$ mkdir <프로젝트명>
$ nvm use <프로젝트에 사용할 node 버전>
--> nodejs.org에서 확인 : 최초 프로젝트의 경우 가능하면 최신버전 ( Major이 짝수 , 홀수는 시험버전 )
$ npm init -> 기본으로 설치 : 엔터3. Base Knowledge - TIPS
underscore VS hyphen Did you catch the difference in interaction?
The underscores cause everything in their path to be chosen, whereas hyphens allow each word to be be highlighted individually.folder / directory → underscore
file name → hyphen- vs -- - : 옵션 글자가 한글자 인 경우 (예) -t, -v
-- : 옵션 글자가 2글자 이상인 경우 (예) --version, --list출처: https://klog.tistory.com/11 [Pre Stage:티스토리]
'신입개발자-교육 > Node(Nest.js)' 카테고리의 다른 글
[NodeJs-신입]1일차 - 개발환경설정- I편( ver 22.09.01) (1) 2022.09.26