Page 199 - Nodejs 교과서 개정2판
P. 199
added 12 packages from 4 contributors in 1.015s
ֿܻझա ݓীࢲח ࢸ दী ҙܻ ӂೠ ਃೞ۽ sudoܳ খী ࠢৈঠ פ sudo npm install --
global rimrafܳ ੑ۱פ
ߑӘ SJNSBGۄח ಁఃܳ ࢸ೮णפ SJNSBGח ֿܻझա ݓ rm --rf ݺ۸যܳ ਦبীࢲب ࢎਊೡ
ࣻ ѱ ೧ח ಁఃੑפ rm --rfח ೠ ੌա ಫ؊ܳ ח ݺ۸যੑפ ࢸ೮ਵ۽ rim
raf ݺ۸যܳ ࣛীࢲ ࢎਊೡ ࣻ णפ ࢸೠ ಁఃח QBDLBHF KTPOী ӝ۾غ ঋणפ
SJNSBG۽ OPEF@NPEVMFT ಫ؊ܳ ઁ೧ࠁѷणפ
콘솔
$ rimraf node_modules
അ ಫ؊ ղীח QBDLBHF KTPOҗ QBDLBHF MPDL KTPO߆ী হח ࢚కੑפ ࢸೠ ಁఃٜਸ ਕߡ۷݅
QBDLBHF KTPOী ࢸೠ ಁః ղ ٜয ਵ۽ ѣೞ ঋইب ؾפ npm install݅ ೞݶ ঌইࢲ
द ࢸؾפ
OPEF@NPEVMFTח ઁٚ npm install۽ ࢸೡ ࣻ ਵ۽ OPEF@NPEVMFTח ࠁҙೡ ਃо হח
ਸ ঌ ࣻ णפ ӥ э ߡ ҙܻ ۽Ӓ۔җ э ࢎਊೡ ٸب OPEF@NPEVMFTח ழೞ ঋणפ
ਃೠ ੌ QBDLBHF KTPOੑפ
/PUF OQY
ࢸܳ ӝೖೞח ѐߊٜب णפ ࢸೠ ಁఃח QBDLBHF KTPOী ӝ۾غ ঋই द ࢸೡ ٸ য۰
ٮܰӝ ٸޙੑפ ۞ೠ ҃ܳ ਤೠ ݺ۸য۽ OQYо णפ
콘솔
$ npm install --save-dev rimraf
$ npx rimraf node_modules
ਤ৬ э SJNSBG ݽٕਸ QBDLBHF KTPO devDependencies ࣘࢿী ӝ۾ೠ റ খী npx ݺ۸যܳ ࠢৈ प೯ೞݶ ؾפ Ӓ
۞ݶ ಁఃܳ ࢸೠ Ѫҗ э ബҗ ݺ۸য۽ ࢎਊ оמ ܳ ਸ ࣻ णפ ಁఃо QBDLBHF KTPOী ӝ۾غਵ
۽ ߡ ҙܻب ਊפ ଼ীࢲب খਵ۽ ࢸ न npxܳ ࢎਊפ
/PUF OQNী ١۾غ ঋ ಁః
ݽٚ ಁఃо OQNী ١۾غয ח Ѫ ইתפ ੌࠗ ಁఃח য় ࣗझо ইפѢա ѐߊ ۽ ӥೲ࠳ա OFYVT ١
ࣗী ࠁҙغয ਸ ࣻب णפ Ӓ۞ೠ ಁఃٜب npm install [저장소 주소] ݺ۸যܳ ా೧ ࢸೡ ࣻ णפ