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

 
                 ֿܻझ ਋࠙ై
         ੉ ଼਷ ਋࠙ై 6CVOUV       #JPOJD ܳ ӝળਵ۽ ೤פ׮  ݓҗ ਦبীࢲח (6*۽ औѱ ࢸ஖೮૑݅  ֿܻझী

         ࢲח ࠁా (6*ܳ ࢎਊೞ૑ ঋਵ޲۽ ௑ࣛਸ ా೧ ࢸ஖ೞѷणפ׮  ਋࠙ై ৻੄ ׮ܲ ֿܻझ ਍৔୓ઁܳ ࢎਊೠ
         ׮ݶ IUUQT   OPEFKT PSH LP EPXOMPBE QBDLBHF NBOBHFS ݂௼ীࢲ ࢸ஖ ߑߨਸ ഛੋೞӡ ߄ۉפ׮


         ௑ࣛী ੽ࣘೠ റ ׮਺ ݺ۸য ׮ࢽ ઴ਸ ೠ ઴ঀ ੑ۱೤פ׮  ਗېח ݃૑݄ ف ઴݅ ੑ۱೧ب غ૑݅  ী۞о
         ߊࢤೡ ࣻب ੓ਵ޲۽ খ੄ ࣁ ઴ب ୶о۽ ੑ۱೤פ׮ ݺ۸য খ੄ $ח ੑ۱ೞח Ѫ੉ ইתפ׮


          콘솔
           $	sudo	apt-get	update
           $	sudo	apt-get	install	-y	build-essential
           $	sudo	apt-get	install	curl
           $	curl	-sL	https://deb.nodesource.com/setup_14.x	|	sudo	-E	bash	--
           $	sudo	apt-get	install	-y	nodejs




         ࢸ஖ೞҊ աࢲ ઁ؀۽ ࢸ஖غ঻ח૑ ഛੋೞӝ ਤ೧ ௑ࣛ ହী ׮਺ ݺ۸ਸ ੑ۱೧ࠇפ׮


          콘솔
           $	node	-v
           14.0.0
           $	npm	-v
           7.6.0




         ੉ ଼੄ ߡ੹җח ׮ܳ ࣻ ੓૑݅  OQN ߡ੹੉ ௑ࣛ ହী ڲ׮ݶ ࢸ஖ ࢿҕੑפ׮  ݅ড ߡ੹੉ ڰ૑ ঋҊ ী۞

         ݫद૑о աৡ׮ݶ ֢٘ܳ ୊਺ࠗఠ ׮द ࢸ஖೧ঠ ೤פ׮


           /PUF ™ ജ҃ ߸ࣻ ഛੋ


           nodeա npm ݺ۸যܳ ࢎਊ೮ਸ ٸ ী۞о ߊࢤೠ׮ݶ ജ҃ ߸ࣻо ઁ؀۽ ࢸ੿غয ੓ח૑ ഛੋ೧ࠊঠ ೤פ׮  ֿܻझীࢲח
           ఠ޷օীࢲ echo	$PATHܳ ੑ۱ೞৈ ജ҃ ߸ࣻ ݾ۾ਸ ഛੋೡ ࣻ ੓णפ׮

            콘솔

            $	echo	$PATH

           Ѿҗ۽ ୹۱غח ҃۽ ઺ী ҃۽ח  ਵ۽ ҳ࠙ؾפ׮  ֢٘о ࢸ஖ػ ҃۽ ӝࠄ੸ਵ۽ח  VTS CJO ژח  VTS MPDBM CJO о ٜ

           য ੓૑ ঋਵݶ ݺ۸য प೯ द ী۞о ߊࢤ೤פ׮  ׮਺ ݺ۸যܳ ࢎਊ೧ࢲ PATH ജ҃ ߸ࣻী ֢٘ ࢸ஖ ҃۽ܳ ୶оೞݶ ؾפ
           ׮

            콘솔

            $	export	PATH=$PATH:노드	설치	경로
   40   41   42   43   44   45   46   47   48   49   50