Page 191 - Nodejs 교과서 개정2판
P. 191
QBDLBHF KTPOਵ۽ ಁః ҙܻೞӝ
ࢲ࠺झী ਃೠ ಁఃܳ ೞաঀ ୶оೞ ࠁݶ যו࢜ ಁః ࣻо ѐܳ ഴ ֈযߡܻѱ ؾפ ӒܻҊ
ࢎਊೡ ಁఃח ݃ Ҋਬೠ ߡ ਵ۽ য٥оী ӝ۾೧فযঠ פ э ಁఃۄب ߡ߹۽ ӝ
מ ܳ ࣻ ਵ۽ ۽ંܳ ࢸೡ ٸ ಁఃب زੌೠ ߡਸ ࢸೞ ঋਵݶ ޙઁо ࢤӡ ࣻ णפ
ٸ ࢸೠ ಁః ߡਸ ҙܻೞח ੌ ߄۽ QBDLBHF KTPOੑפ
ٮۄࢲ ֢٘ ۽ંܳ दೞӝ ীח ಫ؊ ղࠗী ޖઑѤ QBDLBHF KTPOࠗఠ ٜ݅Ҋ द೧ঠ פ OQN
QBDLBHF KTPOਸ ݅٘ח ݺ۸যܳ ઁҕפ
ݢ ࣛ۽ ۽ંܳ दೡ ಫ؊۽ زೠ റ ݺ۸যܳ ੑ۱פ
콘솔
$ 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 json` 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 fil
e.
Press ^C at any time to quit.
package name: (폴더명) [프로젝트 이름 입력]
version: (1.0.0) [프로젝트 버전 입력]
description: [프로젝트 설명 입력]
entry point: index.js
test command: [엔터 키 클릭]
git repository: [엔터 키 클릭]
keywords: [엔터 키 클릭]
author: [여러분의 이름 입력]
license: (ISC) [엔터 키 클릭]
About to write to C:\Users\zerocho\npmtest\package.json:
{
"name": "npmtest",
"version": "0.0.1",
"description": "hello package.json",
"main": "index.js",
"scripts": {
"test": "echo \"Error: no test specified\" && exit 1"