-
NPM Project 생성하기Develpment/Node.js 2020. 9. 13. 21:31
1. NPM Project 시작
$ npm init
123456789101112131415161718192021222324252627282930313233343536This 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 json` for definitive documentation on these fieldsand exactly what they do.Use `npm install <pkg> --save` afterwards to install a package andsave it as a dependency in the package.json file.Press ^C at any time to quit.name: (study01) section01version: (1.0.0)description: npm projectentry point: (index.js)test command:git repository:keywords:author:license: (ISC)About to write to C:\*\package.json:{"name": "section01","version": "1.0.0","description": "npm project","main": "index.js","scripts": {"test": "echo \"Error: no test specified\" && exit 1"},"author": "","license": "ISC"}Is this ok? (yes)cs * 프로젝트를 위한 기본 설정 파일이 생성됨.
package.json
1234567891011{"name": "section01","version": "1.0.0","description": "npm project","main": "index.js","scripts": {"test": "echo \"Error: no test specified\" && exit 1"},"author": "","license": "ISC"}cs 'Develpment > Node.js' 카테고리의 다른 글
static 디렉토리 설정 (express) (0) 2020.09.13 URL Routing 처리 (0) 2020.09.13 nodemon (0) 2020.09.13 간단한 web server (express) (0) 2020.09.13