Backend/nodejs
[Node.js] vscode nodejs 초기 세팅
설기똥꼬
2022. 9. 11. 15:03
1. vscode와 git 연동하기
git clone <복사할 깃 주소>
2. node.js 기본 설정
npm init
// npm init -y 하면 기본 값들 다 불러와짐
package.json 파일 생성
3. node 모듈 설치 + express.js까지 추가한다면
npm install --save express
그러면 프로젝트 폴더에 node_modules, package-lock.json 파일까지 생성된다.
package.json 파일이 존재한다면 프로젝트 공유시 node_modules 폴더까지 공유할 필요가 없어짐!!