{"id":876,"date":"2026-05-20T09:51:15","date_gmt":"2026-05-20T01:51:15","guid":{"rendered":"https:\/\/junai.ai\/blog\/nodejs-npm-package-json-5\/"},"modified":"2026-05-20T09:51:15","modified_gmt":"2026-05-20T01:51:15","slug":"nodejs-npm-package-json-5","status":"publish","type":"post","link":"https:\/\/junai.ai\/blog\/nodejs-npm-package-json-5\/","title":{"rendered":"npm\uacfc package.json \u2014 \uc758\uc874\uc131 \uad00\ub9ac\uc758 \uae30\ubcf8"},"content":{"rendered":"\n<!-- WordPress REST API \ubc1c\ud589\uc6a9 HTML (\uc790\ub3d9 \uc0dd\uc131) -->\n<!-- WP-FEATURED-MEDIA-ID: 822 -->\n<div style=\"max-width:800px;margin:0 auto;\">\n<style>\n:root {--color-primary:#059669;--color-accent:#10b981;--color-bg:#fafbfc;--color-bg-card:#fff;--color-text:#1a202c;--color-text-muted:#64748b;--hero-start:#064e3b;--hero-end:#059669;}\n*{box-sizing:border-box;}\n.container{max-width:760px;margin:0 auto;padding:0 24px 80px;}\n.hero{background:linear-gradient(135deg,var(--hero-start) 0%,var(--hero-end) 100%);color:#fff;padding:80px 24px 60px;text-align:center;}\n.hero .eyebrow{display:inline-block;font-size:14px;color:#6ee7b7;font-weight:700;letter-spacing:0.1em;text-transform:uppercase;margin-bottom:14px;}\n.hero h1{font-size:36px;margin:0 0 16px;line-height:1.3;font-weight:800;}\n.hero p{color:#d1fae5;font-size:18px;max-width:640px;margin:0 auto;line-height:1.6;}\n.hero img{width:100%;max-width:640px;height:auto;margin:32px auto 0;border-radius:10px;display:block;}\narticle{padding-top:48px;}\narticle h2{font-size:26px;margin:56px 0 20px;padding-left:14px;border-left:5px solid var(--color-accent);line-height:1.4;}\narticle h3{font-size:19px;margin:32px 0 12px;color:var(--color-primary);}\narticle p{margin:16px 0;}\narticle strong{color:var(--color-primary);font-weight:700;}\narticle code{background:#d1fae5;padding:2px 8px;border-radius:4px;font-family:'SF Mono',Menlo,Consolas,monospace;font-size:14px;color:#065f46;}\n.databox{background:#d1fae5;border-left:4px solid var(--color-accent);padding:16px 20px;margin:24px 0;border-radius:0 8px 8px 0;font-size:15.5px;}\n.databox strong{color:var(--color-primary);}\n.warnbox{background:linear-gradient(135deg,#fef3c7 0%,#fde68a 100%);padding:16px 20px;margin:24px 0;border-radius:8px;font-size:15.5px;}\n.tablewrap{overflow-x:auto;-webkit-overflow-scrolling:touch;margin:22px 0;}\ntable{width:100%;border-collapse:collapse;font-size:15px;background:var(--color-bg-card);}\nth,td{padding:11px 12px;text-align:left;border-bottom:1px solid #e2e8f0;vertical-align:top;}\nth{background:#f1f5f9;font-weight:700;color:#0f172a;}\ntd:first-child,th:first-child{font-weight:700;}\n@media (max-width:560px){.tablewrap table,.tablewrap thead,.tablewrap tbody,.tablewrap tr,.tablewrap th,.tablewrap td{display:block;width:auto;}.tablewrap thead{display:none;}.tablewrap tr{margin:0 0 14px;border:1px solid #e2e8f0;border-radius:10px;overflow:hidden;}.tablewrap td{border:none;border-bottom:1px solid #f1f5f9;padding:9px 14px;}.tablewrap td:first-child{background:#f1f5f9;font-weight:800;font-size:15.5px;}.tablewrap td:last-child{border-bottom:none;}.tablewrap td[data-label]::before{content:attr(data-label) \" \u2014 \";font-weight:700;color:var(--color-primary);}}\n.code-block{background:#0f172a;color:#e2e8f0;padding:16px 20px;border-radius:8px;font-family:'SF Mono',Menlo,Consolas,monospace;font-size:14px;line-height:1.6;margin:20px 0;overflow-x:auto;white-space:pre;}\n.cta{background:linear-gradient(135deg,#059669 0%,#10b981 100%);color:#fff;padding:28px 24px;border-radius:12px;margin:48px 0 0;text-align:center;}\n.cta h3{color:#fff;margin:0 0 8px;font-size:20px;}\n.cta p{color:#d1fae5;margin:0;font-size:15.5px;}\n.footer-nav{margin-top:32px;padding-top:20px;border-top:1px solid #e2e8f0;font-size:14px;color:var(--color-text-muted);}\n.footer-nav a{color:var(--color-primary);text-decoration:none;}\n@media (max-width:480px){.hero h1{font-size:26px;}.hero p{font-size:16px;}article h2{font-size:21px;}article h3{font-size:17px;}body{font-size:16px;}}\n<\/style>\n<section class=\"hero\">\n  <span class=\"eyebrow\">Node.js \uad50\uc7ac \u00b7 5\ud3b8 \u00b7 npm \uacfc \uc758\uc874\uc131<\/span>\n  <h1>npm\uacfc package.json \u2014 \uc758\uc874\uc131 \uad00\ub9ac\uc758 \uae30\ubcf8<\/h1>\n  <p>\ud328\ud0a4\uc9c0 \ud55c \uc904\ub85c \uc124\uce58, \ubc84\uc804 \ubc94\uc704\ub85c \uc548\uc804\ud558\uac8c, lockfile \ub85c \ud300\uacfc \uac19\uc740 \uacb0\uacfc.<\/p>\n  <img decoding=\"async\" src=\"https:\/\/junai.ai\/blog\/wp-content\/uploads\/2026\/05\/hero-5-55.jpg\" alt=\"npm \ud328\ud0a4\uc9c0\uac00 \uc758\uc874\uc131 \ud2b8\ub9ac\ub85c \uc313\uc774\ub294 \ucee8\uc149 \uc544\uc774\uc18c\uba54\ud2b8\ub9ad \uc77c\ub7ec\uc2a4\ud2b8\">\n<\/section>\n\n<div class=\"container\">\n<article>\n\n<p>\uc9c0\uae08\uae4c\uc9c0 Node \ubcf8\uccb4\ub85c\ub9cc \ucf54\ub4dc\ub97c \uc9f0\ub2e4. \ud558\uc9c0\ub9cc \uc2e4\uc804\uc5d0\uc120 \uac70\uc758 \ud55c \uc904\ub3c4 \ub77c\uc774\ube0c\ub7ec\ub9ac \uc5c6\uc774 \ubabb \uc4f4\ub2e4. \uc6f9 \uc11c\ubc84 \ub744\uc6b8 \ub54c Express, \ub370\uc774\ud130 \uac80\uc99d\ud560 \ub54c Zod, \ub0a0\uc9dc \ub2e4\ub8f0 \ub54c date-fns \u2014 \ub2e4 \ub0a8\uc774 \ub9cc\ub4e0 \ud328\ud0a4\uc9c0\ub97c \ub04c\uc5b4\ub2e4 \uc4f4\ub2e4.<\/p>\n\n<p>\uadf8 \ud328\ud0a4\uc9c0 \uce74\ud0c8\ub85c\uadf8\uac00 <strong>npm registry<\/strong> (260\ub9cc \uac1c+) \uc774\uace0, \uac00\uc838\uc624\ub294 \ub3c4\uad6c\uac00 <code>npm<\/code> \uba85\ub839. \uadf8\ub9ac\uace0 \uc5b4\ub5a4 \ud328\ud0a4\uc9c0\ub97c \uc4f0\ub294\uc9c0 \uae30\ub85d\ud558\ub294 \ud30c\uc77c\uc774 <strong><code>package.json<\/code><\/strong>. \uc774 \uc14b\uc774 Node \ud504\ub85c\uc81d\ud2b8\uc758 \ucc99\ucd94\ub2e4.<\/p>\n\n<h2>1. package.json \u2014 \ud504\ub85c\uc81d\ud2b8\uc758 \uc2e0\ubd84\uc99d<\/h2>\n\n<p>\uc0c8 \ud504\ub85c\uc81d\ud2b8\ub294 \ube48 \ud3f4\ub354\uc5d0\uc11c <code>npm init -y<\/code> \ud55c \uc904.<\/p>\n\n<div class=\"code-block\">$ mkdir my-app &#038;&#038; cd my-app\n$ npm init -y\nWrote to \/Users\/&#8230;\/my-app\/package.json:\n{\n  &#8220;name&#8221;: &#8220;my-app&#8221;,\n  &#8220;version&#8221;: &#8220;1.0.0&#8221;,\n  &#8220;main&#8221;: &#8220;index.js&#8221;,\n  &#8220;scripts&#8221;: { &#8220;test&#8221;: &#8220;echo \\&#8221;Error: no test specified\\&#8221; &#038;&#038; exit 1&#8243; },\n  &#8220;keywords&#8221;: [],\n  &#8220;author&#8221;: &#8220;&#8221;,\n  &#8220;license&#8221;: &#8220;ISC&#8221;\n}<\/div>\n\n<p><code>-y<\/code> \ub294 \ubaa8\ub4e0 \uc9c8\ubb38\uc5d0 yes (\uae30\ubcf8\uac12) \ub85c \ub2f5\ud558\ub294 \ub2e8\ucd95. \uccab \uc2e4\uc2b5\uc5d4 \uc774 \ubaa8\ub4dc, \uc2e4\uc81c \ubc30\ud3ec\ud560 \ud328\ud0a4\uc9c0\uba74 <code>npm init<\/code> \uc73c\ub85c \ud558\ub098\uc529 \ub2f5\ud558\ub294 \uac8c \uc88b\ub2e4.<\/p>\n\n<p>\ud575\uc2ec \ud544\ub4dc 6\uac1c\ub9cc \uc54c\uba74 95% \ucda9\ubd84:<\/p>\n\n<div class=\"tablewrap\">\n<table>\n<thead><tr><th>\ud544\ub4dc<\/th><th>\uc758\ubbf8<\/th><\/tr><\/thead>\n<tbody>\n<tr><td><code>name<\/code><\/td><td data-label=\"\uc758\ubbf8\">\ud328\ud0a4\uc9c0 \uc774\ub984. \uc18c\ubb38\uc790\u00b7\ud558\uc774\ud508\ub9cc.<\/td><\/tr>\n<tr><td><code>version<\/code><\/td><td data-label=\"\uc758\ubbf8\">SemVer \ubc84\uc804 (major.minor.patch).<\/td><\/tr>\n<tr><td><code>type<\/code><\/td><td data-label=\"\uc758\ubbf8\"><code>\"module\"<\/code> \uba74 ESM, \uc0dd\ub7b5 \uc2dc CommonJS.<\/td><\/tr>\n<tr><td><code>main<\/code> \/ <code>exports<\/code><\/td><td data-label=\"\uc758\ubbf8\">\ud328\ud0a4\uc9c0\uc758 \uc9c4\uc785\uc810 \ud30c\uc77c.<\/td><\/tr>\n<tr><td><code>scripts<\/code><\/td><td data-label=\"\uc758\ubbf8\"><code>npm run X<\/code> \ub85c \uc2e4\ud589\ud560 \ub2e8\ucd95 \uba85\ub839.<\/td><\/tr>\n<tr><td><code>dependencies<\/code> \/ <code>devDependencies<\/code><\/td><td data-label=\"\uc758\ubbf8\">\uc758\uc874 \ud328\ud0a4\uc9c0 \ubaa9\ub85d.<\/td><\/tr>\n<\/tbody>\n<\/table>\n<\/div>\n\n<h2>2. \ud328\ud0a4\uc9c0 \uc124\uce58 \u2014 install\u00b7uninstall\u00b7update<\/h2>\n\n<p>\uac00\uc7a5 \uc790\uc8fc \uc4f0\ub294 \uba85\ub839\ubd80\ud130.<\/p>\n\n<div class=\"code-block\">$ npm install express          # \ucd94\uac00 \uc124\uce58 (= npm i express)\n$ npm install -D vitest        # \uac1c\ubc1c \uc758\uc874\uc131\uc73c\ub85c \uc124\uce58 (devDependencies)\n$ npm install                  # package.json \uae30\ubc18 \uc804\uccb4 \uc7ac\uc124\uce58\n$ npm uninstall express        # \uc81c\uac70\n$ npm update                   # \ubaa8\ub4e0 \uc758\uc874\uc131\uc744 \ud5c8\uc6a9 \ubc94\uc704 \ub0b4 \ucd5c\uc2e0\uc73c\ub85c\n$ npm outdated                 # \uc5c5\ub370\uc774\ud2b8 \uac00\ub2a5\ud55c \ud328\ud0a4\uc9c0 \ubaa9\ub85d<\/div>\n\n<p>\uc124\uce58\ud558\uba74 \uc790\ub3d9\uc73c\ub85c \uc77c\uc5b4\ub098\ub294 3\uac00\uc9c0:<\/p>\n\n<ul>\n<li><strong><code>node_modules\/<\/code><\/strong> \ud3f4\ub354\uc5d0 \uc2e4\uc81c \ucf54\ub4dc \ub2e4\uc6b4\ub85c\ub4dc.<\/li>\n<li><strong><code>package.json<\/code><\/strong> \uc758 <code>dependencies<\/code>(\ub610\ub294 <code>devDependencies<\/code>) \uc5d0 \ud55c \uc904 \ucd94\uac00.<\/li>\n<li><strong><code>package-lock.json<\/code><\/strong> \uc5d0 \uc815\ud655\ud55c \ubc84\uc804\u00b7\ud574\uc2dc \uae30\ub85d.<\/li>\n<\/ul>\n\n<div class=\"databox\">\n<strong>dependencies vs devDependencies<\/strong> \u2014 \ub458\uc758 \ucc28\uc774\ub294 <strong>\ubc30\ud3ec \ud658\uacbd\uc5d0\uc11c \uc124\uce58\ub418\ub294\uac00<\/strong>. Express \ucc98\ub7fc \ub7f0\ud0c0\uc784\uc5d0 \ud544\uc694\ud55c \uac74 <code>dependencies<\/code>, Vitest \uac19\uc774 \uac1c\ubc1c\ud560 \ub54c\ub9cc \uc4f0\ub294 \uac74 <code>-D<\/code> \ud50c\ub798\uadf8\ub85c <code>devDependencies<\/code>. production \ube4c\ub4dc\uc5d0\uc11c <code>npm install --omit=dev<\/code> \ud558\uba74 \ud6c4\uc790\ub294 \uc81c\uc678\ub3fc \ubc30\ud3ec \uc6a9\ub7c9\uc774 \uc791\uc544\uc9c4\ub2e4.\n<\/div>\n\n<h2>3. \ubc84\uc804 \ubc94\uc704 \u2014 ^\u00b7~\u00b7\uc815\ud655 \ubc84\uc804<\/h2>\n\n<p><code>package.json<\/code> \uc744 \ubcf4\uba74 \ubc84\uc804 \uc55e\uc5d0 \uc774\uc0c1\ud55c \uae30\ud638\uac00 \ubd99\uc5b4 \uc788\ub2e4.<\/p>\n\n<div class=\"code-block\">{\n  &#8220;dependencies&#8221;: {\n    &#8220;express&#8221;: &#8220;^4.21.0&#8221;,\n    &#8220;zod&#8221;: &#8220;~3.23.8&#8221;,\n    &#8220;react&#8221;: &#8220;19.0.0&#8221;\n  }\n}<\/div>\n\n<p>\uc774 \uae30\ud638\uac00 <strong>\ubc84\uc804 \ubc94\uc704<\/strong>. \uc758\ubbf8\ub97c \uc815\ud655\ud788 \uc54c\uc544\uc57c \uc548\uc804\ud55c \uc5c5\uadf8\ub808\uc774\ub4dc\uac00 \uac00\ub2a5\ud558\ub2e4.<\/p>\n\n<div class=\"tablewrap\">\n<table>\n<thead><tr><th>\ud45c\uae30<\/th><th>\uc758\ubbf8<\/th><th>\uc608 \u2014 express 4.21.0 \uae30\uc900<\/th><\/tr><\/thead>\n<tbody>\n<tr><td><code>^4.21.0<\/code><\/td><td data-label=\"\uc758\ubbf8\">\uac19\uc740 major \uc548\uc5d0\uc11c \ucd5c\uc2e0 (\uac00\uc7a5 \ud754\ud568)<\/td><td data-label=\"\uc608\">4.21.0 ~ 4.99.99 OK \u00b7 5.0.0 X<\/td><\/tr>\n<tr><td><code>~4.21.0<\/code><\/td><td data-label=\"\uc758\ubbf8\">\uac19\uc740 major.minor \uc548\uc5d0\uc11c \ucd5c\uc2e0 (\ubcf4\uc218\uc801)<\/td><td data-label=\"\uc608\">4.21.0 ~ 4.21.99 OK \u00b7 4.22.0 X<\/td><\/tr>\n<tr><td><code>4.21.0<\/code><\/td><td data-label=\"\uc758\ubbf8\">\uc815\ud655\ud788 \uadf8 \ubc84\uc804\ub9cc<\/td><td data-label=\"\uc608\">4.21.0 \ub9cc<\/td><\/tr>\n<tr><td><code>*<\/code><\/td><td data-label=\"\uc758\ubbf8\">\uc544\ubb34 \ubc84\uc804 (\uc704\ud5d8, \ube44\ucd94)<\/td><td data-label=\"\uc608\">\ubaa8\ub4e0 \ubc84\uc804<\/td><\/tr>\n<\/tbody>\n<\/table>\n<\/div>\n\n<p>\ud604\uc2e4 \uad8c\uc7a5 \u2014 <strong>\ub300\ubd80\ubd84 <code>^<\/code> \uadf8\ub300\ub85c \ub450\uae30<\/strong>. SemVer \uc57d\uc18d\uc0c1 \uac19\uc740 major \uc548\uc5d0\uc11c\ub294 \ud638\ud658\ub418\ub2c8\uae4c. \ud575\uc2ec \uc758\uc874\uc131(React \uac19\uc740 \ud070 \ub77c\uc774\ube0c\ub7ec\ub9ac)\ub9cc \uc815\ud655 \ubc84\uc804\uc73c\ub85c \uace0\uc815\ud574 \uae5c\uc9dd \uae68\uc9d0\uc744 \ubc29\uc9c0.<\/p>\n\n<h2>4. lockfile \u2014 \ud300\uc774 \uc815\ud655\ud788 \uac19\uc740 \uacb0\uacfc\ub97c \ubc1b\ub294 \ube44\ubc00<\/h2>\n\n<p><code>package.json<\/code> \ub9cc\uc73c\ub85c \ubd80\uc871\ud55c \uc774\uc720 \u2014 <code>^4.21.0<\/code> \uc740 &#8220;4.x \ucd5c\uc2e0&#8221; \uc778\ub370 \ub9e4\uc77c \uc0c8 \ub9c8\uc774\ub108 \ubc84\uc804\uc774 \ub098\uc628\ub2e4. A \uac00 \uc624\ub298 \uc124\uce58\ud558\uba74 4.21.5, B \uac00 \ub0b4\uc77c \uc124\uce58\ud558\uba74 4.22.0 \u2014 \ub2e4\ub978 \uacb0\uacfc.<\/p>\n\n<p>\uadf8\ub798\uc11c npm \uc740 \uc124\uce58\ud560 \ub54c\ub9c8\ub2e4 <code>package-lock.json<\/code> \uc5d0 <strong>\uc815\ud655\ud55c \ubc84\uc804 + \ud574\uc2dc<\/strong>\ub97c \uc801\uc5b4 \ub454\ub2e4. \uc774 \ud30c\uc77c\uc744 <strong>git \uc5d0 \uac19\uc774 \ucee4\ubc0b<\/strong>\ud558\uba74 \ud300 \uc804\uc6d0\uc774 \uac19\uc740 \ubc84\uc804\uc744 \ubc1b\ub294\ub2e4.<\/p>\n\n<div class=\"code-block\">$ npm install              # package.json \ubcf4\uace0 \ubc94\uc704 \uc548 \ucd5c\uc2e0 \uc124\uce58 + lock \uc5c5\ub370\uc774\ud2b8\n$ npm ci                   # lockfile \uadf8\ub300\ub85c \uc815\ud655 \uc7ac\ud604 (CI \uc5d0\uc11c \uad8c\uc7a5)<\/div>\n\n<p>\ub450 \uba85\ub839\uc758 \ucc28\uc774\ub294 \uacb0\uc815\uc801\uc774\ub2e4. \ub85c\uceec\uc5d0\uc11c <code>npm install<\/code> \uc740 \uc57d\uac04\uc529 lockfile \uc744 \ubc14\uafb8\uc9c0\ub9cc, CI \uc5d0\uc120 <code>npm ci<\/code> \uac00 \uc815\ub2f5 \u2014 lockfile \uacfc \uc2e4\uc81c \uc124\uce58\uac00 \ub2e4\ub974\uba74 \uc989\uc2dc \uc5d0\ub7ec\ub85c \uba48\ucd98\ub2e4.<\/p>\n\n<div class=\"warnbox\">\n<strong>\ud754\ud55c \uc2e4\uc218<\/strong> \u2014 <code>package-lock.json<\/code> \uc744 <code>.gitignore<\/code> \uc5d0 \ucd94\uac00\ud558\ub294 \uac83. \uc808\ub300 \uae08\uc9c0. \uc774 \ud30c\uc77c\uc774 \uc5c6\uc73c\uba74 \ub9e4\ubc88 \ub2e4\ub978 \ubc84\uc804\uc774 \uae54\ub824 &#8220;\ub0b4 \ucef4\ud4e8\ud130\uc5d0\uc120 \ub418\ub294\ub370\uc694&#8221; \uc758 \uc6d0\ud749\uc774 \ub41c\ub2e4. \ub2e8, \ub77c\uc774\ube0c\ub7ec\ub9ac \ubc30\ud3ec \ud328\ud0a4\uc9c0\ub294 lockfile \uc744 git \uc5d0 \ub123\uc9c0 \uc54a\ub294 \uac83\ub3c4 \ud55c \uc120\ud0dd\uc9c0 (\uc0ac\uc6a9\uc790\uac00 \uc790\uae30 lock \uc744 \ub9cc\ub4e4\uc5b4\uc57c \ud558\ub2c8\uae4c).\n<\/div>\n\n<h2>5. scripts \u2014 \uba85\ub839\uc5b4 \ubcc4\uce6d \ubaa8\uc74c<\/h2>\n\n<p><code>package.json<\/code> \uc758 <code>scripts<\/code> \ub294 <strong>\ud504\ub85c\uc81d\ud2b8 \ub2e8\ucd95 \uba85\ub839 \uc0ac\uc804<\/strong>\uc774\ub2e4.<\/p>\n\n<div class=\"code-block\">{\n  &#8220;scripts&#8221;: {\n    &#8220;dev&#8221;: &#8220;node &#8211;watch server.js&#8221;,\n    &#8220;start&#8221;: &#8220;node server.js&#8221;,\n    &#8220;test&#8221;: &#8220;vitest&#8221;,\n    &#8220;lint&#8221;: &#8220;eslint .&#8221;,\n    &#8220;build&#8221;: &#8220;tsc&#8221;,\n    &#8220;format&#8221;: &#8220;prettier &#8211;write .&#8221;\n  }\n}<\/div>\n\n<p>\uc2e4\ud589\uc740 <code>npm run X<\/code>. \uc608\uc678\ub85c <code>start<\/code>\u00b7<code>test<\/code> \ub294 <code>run<\/code> \uc0dd\ub7b5 \uac00\ub2a5 (<code>npm start<\/code>\u00b7<code>npm test<\/code>).<\/p>\n\n<p>\uc7a5\uc810 \ub450 \uac00\uc9c0 \u2014 \u2460 \ud300\uc6d0\uc774 \uba85\ub839\uc744 \uc678\uc6b8 \ud544\uc694 \uc5c6\uc74c (\ubaa8\ub450\uac00 <code>npm run dev<\/code>), \u2461 OS \ucc28\uc774\ub97c \ud761\uc218. \uc708\ub3c4\uc6b0\uc640 \ub9e5\uc758 \uacbd\ub85c \uad6c\ubd84\uc790 \ucc28\uc774\ub97c cross-env \uac19\uc740 \ud328\ud0a4\uc9c0\ub85c \ud55c \uc904\uc5d0 \ucc98\ub9ac.<\/p>\n\n<h3>\uc694\uc57d \u2014 5\ud3b8 \uc88c\ud45c<\/h3>\n\n<p>\uc5ec\uae30\uae4c\uc9c0 \uc815\ub9ac. <code>package.json<\/code> \uc740 \ud504\ub85c\uc81d\ud2b8 \uc2e0\ubd84\uc99d, <code>npm install<\/code> \ub85c \ud328\ud0a4\uc9c0 \ucd94\uac00\ud558\uba74 \uc790\ub3d9\uc73c\ub85c <code>node_modules\/<\/code>\u00b7<code>dependencies<\/code>\u00b7<code>package-lock.json<\/code> \uc14b\uc774 \uac31\uc2e0. \ubc84\uc804 \uae30\ud638\ub294 <code>^<\/code>(\uac19\uc740 major) \uac00 \ud45c\uc900, lockfile \uc740 \ubc18\ub4dc\uc2dc git \ucee4\ubc0b. <code>scripts<\/code> \uc5d0 \uc790\uc8fc \uc4f0\ub294 \uba85\ub839\uc744 \ub2e8\ucd95\uc5b4\ub85c \ubc15\uc544\ub450\uba74 \ud300 \ud611\uc5c5\uc774 \ub9e4\ub044\ub7fd\ub2e4. \ub2e4\uc74c \ud3b8\uc5d0\uc11c \uc9c4\uc9dc \uc791\uc5c5 \uc2dc\uc791 \u2014 <strong>fs \ubaa8\ub4c8\ub85c \ud30c\uc77c \uc77d\uae30\u00b7\uc4f0\uae30<\/strong>.<\/p>\n\n<div class=\"cta\">\n<h3>\ub2e4\uc74c \ud3b8 \uc608\uace0 \u2014 fs \ubaa8\ub4c8 \ud30c\uc77c \ub2e4\ub8e8\uae30<\/h3>\n<p>\ub3d9\uae30 vs \ube44\ub3d9\uae30 \ud30c\uc77c I\/O, \uc790\uc8fc \uc4f0\ub294 \uba54\uc11c\ub4dc. 6\ud3b8.<\/p>\n<\/div>\n\n<div class=\"footer-nav\">\n\uc2dc\ub9ac\uc988 \u00b7 <a href=\"https:\/\/junai.ai\/blog\/category\/nodejs\/\">\uc27d\uac8c \ubc30\uc6b0\ub294 Node.js<\/a> \u00b7 \uc774\uc804: <a href=\"https:\/\/junai.ai\/blog\/nodejs-modules-cjs-esm-4\/\">Ch.4 \ubaa8\ub4c8 \uc2dc\uc2a4\ud15c<\/a>\n<\/div>\n\n<\/article>\n<\/div>\n<\/div>\n","protected":false},"excerpt":{"rendered":"<p>npm \uc73c\ub85c \ud328\ud0a4\uc9c0 \uc124\uce58\u00b7\ubc84\uc804 \ubc94\uc704\u00b7lockfile\u00b7scripts. package.json \ud575\uc2ec \ud544\ub4dc \uc815\ub9ac. Node.js \uad50\uc7ac 5\ud3b8.<\/p>\n","protected":false},"author":1,"featured_media":822,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[24],"tags":[],"class_list":["post-876","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-nodejs"],"aioseo_notices":[],"_links":{"self":[{"href":"https:\/\/junai.ai\/blog\/wp-json\/wp\/v2\/posts\/876","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/junai.ai\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/junai.ai\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/junai.ai\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/junai.ai\/blog\/wp-json\/wp\/v2\/comments?post=876"}],"version-history":[{"count":0,"href":"https:\/\/junai.ai\/blog\/wp-json\/wp\/v2\/posts\/876\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/junai.ai\/blog\/wp-json\/wp\/v2\/media\/822"}],"wp:attachment":[{"href":"https:\/\/junai.ai\/blog\/wp-json\/wp\/v2\/media?parent=876"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/junai.ai\/blog\/wp-json\/wp\/v2\/categories?post=876"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/junai.ai\/blog\/wp-json\/wp\/v2\/tags?post=876"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}