$ npm init //프로젝트 기본 설정 This utility will walk you through creating a package.json file. It only covers the most common items, and tries to guess sensible defaults. See `npm help init` for definitive documentation on these fields and exactly what they do. Use `npm install <pkg>` afterwards to install a package and save it as a dependency in the package.json file. Press ^C at any time to quit. package name: (node) version: (1.0.0) description: entry point: (index.js) test command: git repository: keywords: author: license: (ISC) About to write to C:\Users\hyeonmin\Desktop\study\node\package.json: { "name": "node", "version": "1.0.0", "description": "", "main": "index.js", "directories": { "test": "test" }, "scripts": { "test": "echo \"Error: no test specified\" && exit 1" }, "author": "", "license": "ISC" } Is this OK? (yes)
- package name : 패키지 이름
- version : 패키지 버전
- entry point : 자바스크립트 실행파일 진입점
- test command : 코드를 테스트 할 때 입력할 명령어
- git repository : 깃저장소 주소
- keywords : npm 공식 홈페이지에서 패키지를 쉽게 찾을 수 있게 해줌
- license : 해당 패키지의 라이선스 입력
$ npminstall --save-dev nodemon major.minor.patch
package.json의 기호