Page 44 - Nodejs 교과서 개정2판
P. 44
터미널
$ node -v
v14.0.0
աী OQN ֢٘ ಁః ݒפ ਸ ࢎਊ೧ঠ ೞ۽ OQN ઁ۽ ࢸغחب ഛੋפ
터미널
$ npm -v
6.14.4
଼ ߡҗח ܳ ࣻ ݅ OQN ߡ ఠօী ڲݶ ࢸ ࢿҕੑפ ݅ড ߡ ڰ ঋҊ ী۞
ݫदо աৡݶ ֢٘ܳ ࠗఠ द ࢸ೧ঠ פ
/PUF ജ҃ ߸ࣻ ഛੋ
nodeա npm ݺ۸যܳ ࢎਊ೮ਸ ٸ ী۞о ߊࢤೠݶ ജ҃ ߸ࣻо ઁ۽ ࢸغয ח ഛੋ೧ࠊঠ פ ݓীࢲח ఠ
օীࢲ echo $PATHܳ ੑ۱ೞৈ ജ҃ ߸ࣻ ݾ۾ਸ ഛੋೡ ࣻ णפ
터미널
$ echo $PATH
Ѿҗ۽ ۱غח ҃۽ ী ҃۽ח ਵ۽ ҳ࠙ؾפ ֢٘о ࢸػ ҃۽ ӝࠄਵ۽ח VTS CJO ژח VTS MPDBM CJO о ٜ
য ঋਵݶ ݺ۸য प೯ द ী۞о ߊࢤפ ݺ۸যܳ ࢎਊ೧ࢲ PATH ജ҃ ߸ࣻী ֢٘ ࢸ ҃۽ܳ ୶оೞݶ ؾפ
터미널
$ export PATH=$PATH:노드 설치 경로
द echo $PATHܳ प೯ೞৈ ֢٘ ࢸ ҃۽о ઁ۽ ٜযщח ഛੋפ ઁ۽ ٜয ݶ ఠօਸ द प೯ೡ ٸ
node৬ npm ݺ۸যо زೡ Ѫੑפ ജ҃ ߸ࣻী ٜয חؘب زೞ ঋחݶ ֢٘ܳ ࠗఠ द ࢸೞࣁਃ
/PUF )PNFCSFX۽ ֢٘ ࢸೞӝ
ఠօਸ ా೧ ֢٘ܳ ࢸೞҊ रݶ )PNFCSFXܳ ࢎਊೞݶ ؾפ ݺ۸যܳ ఠօী ੑ۱ೞৈ )PNFCSFXܳ ࢸ
פ
터미널
$ /bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install.sh)"
)PNFCSFX ࢸо ৮ܐغݶ brew install node ݺ۸য۽ ֢٘ܳ ࢸೞݶ ؾפ