Page 193 - Nodejs 교과서 개정2판
P. 193

npm init प೯੉ ৮ܐغݶ ಫ؊ী ׮਺җ э਷ ౵ੌ੉ ࢤࢿؾפ׮

          package.json

           {
           		"name":	"npmtest",
           		"version":	"0.0.1",
           		"description":	"hello	package.json",
           		"main":	"index.js",
           		"scripts":	{
           				"test":	"echo	\"Error:	no	test	specified\"	&&	exit	1"
           		},
           		"author":	"ZeroCho",
           		"license":	"ISC"
           }




         ޷ܻࠁӝী ա৳؍ Ӓ؀۽ ࢤࢿغ঻णפ׮  ഑द QBDLBHF KTPO੄ ղਊ੉ ׮ܰ׮ݶ খਵ۽੄ पणਸ ਤ೧ ਤ৬

         э੉ ղਊਸ ࣻ੿೧઱ࣁਃ authorח ৈ۞࠙੄ ੉ܴਸ ੸ਵࣁਃ

         scripts ࠗ࠙਷ npm ݺ۸যܳ ੷੢೧فח ࠗ࠙ੑפ׮  ௑ࣛীࢲ npm	run	[스크립트	명령어]ܳ ੑ۱ೞݶ ೧׼

         झ௼݀౟о प೯ؾפ׮  ৘ܳ ٜয npm	run	testܳ ೞݶ echo	"Error:	no	test	specified"    FYJU  ੉ प
         ೯ؾפ׮  echo	"Error:	no	test	specified"ח ௑ࣛী ೧׼ ޙ੗ৌਸ ୹۱ೞۄח ڷ੉Ҋ  exit	1਷ ী۞৬

         ೣԋ ઙܐೞۄח ڷੑפ׮  ௑ࣛী ૒੽ ݺ۸যܳ प೯೧ࠁࣁਃ

          콘솔

           $	npm	run	test
           >	npmtest@0.0.1	test	C:\Users\zerocho\npmtest
           >	echo	"Error:	no	test	specified"	&&	exit	1


           "Error:	no	test	specified"
           npm	ERR!	Test	failed.	See	above	for	more	details.
           …




         UFTU झ௼݀౟ ৻ীب scripts ࣘࢿী ݺ۸য ৈ۞ ѐܳ ١۾೧فҊ ࢎਊೡ ࣻ ੓णפ׮  ࠁా start ݺ۸যী n

         ode [파일명]ਸ ੷੢೧فҊ npm start۽ प೯೤פ׮  TUBSUա UFTU э਷ झ௼݀౟ח runਸ ࠢ੉૑ ঋইب प೯
         ؾפ׮

         ੉ઁ ಁః૑ٜਸ ࢸ஖೧ࠇद׮   ੢ীࢲ ࢎਊೡ ੊झ೐ۨझ &YQSFTT ܳ ࢸ஖೧ࠁѷणפ׮  npm install [패키지

         이름]ਸ QBDLBHF KTPO੉ ੓ח ಫ؊੄ ௑ࣛীࢲ ੑ۱ೞݶ ؾפ׮

          콘솔

           $	npm	install	express
   188   189   190   191   192   193   194   195   196   197   198