{"id":36,"date":"2024-02-18T18:06:10","date_gmt":"2024-02-18T18:06:10","guid":{"rendered":"https:\/\/trgis.dev\/?p=36"},"modified":"2024-02-18T18:06:11","modified_gmt":"2024-02-18T18:06:11","slug":"npm-komutlari","status":"publish","type":"post","link":"https:\/\/trgis.dev\/?p=36","title":{"rendered":"npm Komutlar\u0131"},"content":{"rendered":"\n<p>npm (Node Package Manager), JavaScript projelerinizde ba\u011f\u0131ml\u0131l\u0131klar\u0131 y\u00f6netmek ve paketlerinizi da\u011f\u0131tmak i\u00e7in yayg\u0131n olarak kullan\u0131lan bir ara\u00e7t\u0131r. Bu yaz\u0131da, npm&#8217;nin temel komutlar\u0131n\u0131 ve bunlar\u0131n ne i\u015fe yarad\u0131\u011f\u0131na bir g\u00f6z atal\u0131m.<\/p>\n\n\n\n<p><\/p>\n\n\n\n<h3 class=\"wp-block-heading\">1. <code>npm init<\/code><\/h3>\n\n\n\n<p>Yeni bir proje olu\u015fturmak i\u00e7in bu komutu kullanabilirsiniz. Bu komut, bir proje dizininde <code>package.json<\/code> dosyas\u0131n\u0131 olu\u015fturman\u0131z\u0131 sa\u011flar. <code>package.json<\/code>, proje ba\u011f\u0131ml\u0131l\u0131klar\u0131n\u0131z\u0131 ve di\u011fer \u00f6nemli meta verileri i\u00e7eren bir dosyad\u0131r.<\/p>\n\n\n\n<div class=\"wp-block-kevinbatdorf-code-block-pro\" data-code-block-pro-font-family=\"Code-Pro-JetBrains-Mono\" style=\"font-size:.875rem;font-family:Code-Pro-JetBrains-Mono,ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,monospace;line-height:1.25rem;--cbp-tab-width:2;tab-size:var(--cbp-tab-width, 2)\"><span style=\"display:block;padding:16px 0 0 16px;margin-bottom:-1px;width:100%;text-align:left;background-color:#2e3440ff\"><svg xmlns=\"http:\/\/www.w3.org\/2000\/svg\" width=\"54\" height=\"14\" viewBox=\"0 0 54 14\"><g fill=\"none\" fill-rule=\"evenodd\" transform=\"translate(1 1)\"><circle cx=\"6\" cy=\"6\" r=\"6\" fill=\"#FF5F56\" stroke=\"#E0443E\" stroke-width=\".5\"><\/circle><circle cx=\"26\" cy=\"6\" r=\"6\" fill=\"#FFBD2E\" stroke=\"#DEA123\" stroke-width=\".5\"><\/circle><circle cx=\"46\" cy=\"6\" r=\"6\" fill=\"#27C93F\" stroke=\"#1AAB29\" stroke-width=\".5\"><\/circle><\/g><\/svg><\/span><span role=\"button\" tabindex=\"0\" data-code=\"npm init\" style=\"color:#d8dee9ff;display:none\" aria-label=\"Copy\" class=\"code-block-pro-copy-button\"><svg xmlns=\"http:\/\/www.w3.org\/2000\/svg\" style=\"width:24px;height:24px\" fill=\"none\" viewBox=\"0 0 24 24\" stroke=\"currentColor\" stroke-width=\"2\"><path class=\"with-check\" stroke-linecap=\"round\" stroke-linejoin=\"round\" d=\"M9 5H7a2 2 0 00-2 2v12a2 2 0 002 2h10a2 2 0 002-2V7a2 2 0 00-2-2h-2M9 5a2 2 0 002 2h2a2 2 0 002-2M9 5a2 2 0 012-2h2a2 2 0 012 2m-6 9l2 2 4-4\"><\/path><path class=\"without-check\" stroke-linecap=\"round\" stroke-linejoin=\"round\" d=\"M9 5H7a2 2 0 00-2 2v12a2 2 0 002 2h10a2 2 0 002-2V7a2 2 0 00-2-2h-2M9 5a2 2 0 002 2h2a2 2 0 002-2M9 5a2 2 0 012-2h2a2 2 0 012 2\"><\/path><\/svg><\/span><pre class=\"shiki nord\" style=\"background-color: #2e3440ff\" tabindex=\"0\"><code><span class=\"line\"><span style=\"color: #D8DEE9\">npm<\/span><span style=\"color: #D8DEE9FF\"> <\/span><span style=\"color: #D8DEE9\">init<\/span><\/span><\/code><\/pre><\/div>\n\n\n\n<p><\/p>\n\n\n\n<h3 class=\"wp-block-heading\">2. <code>npm instal<\/code>l<\/h3>\n\n\n\n<p>Ba\u011f\u0131ml\u0131l\u0131klar\u0131 y\u00fcklemek i\u00e7in kullan\u0131l\u0131r. <code>package.json<\/code> dosyas\u0131ndaki ba\u011f\u0131ml\u0131l\u0131klar\u0131 y\u00fckler ve <code>node_modules<\/code> dizinine kurar.<\/p>\n\n\n\n<div class=\"wp-block-kevinbatdorf-code-block-pro\" data-code-block-pro-font-family=\"Code-Pro-JetBrains-Mono\" style=\"font-size:.875rem;font-family:Code-Pro-JetBrains-Mono,ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,monospace;line-height:1.25rem;--cbp-tab-width:2;tab-size:var(--cbp-tab-width, 2)\"><span style=\"display:block;padding:16px 0 0 16px;margin-bottom:-1px;width:100%;text-align:left;background-color:#2e3440ff\"><svg xmlns=\"http:\/\/www.w3.org\/2000\/svg\" width=\"54\" height=\"14\" viewBox=\"0 0 54 14\"><g fill=\"none\" fill-rule=\"evenodd\" transform=\"translate(1 1)\"><circle cx=\"6\" cy=\"6\" r=\"6\" fill=\"#FF5F56\" stroke=\"#E0443E\" stroke-width=\".5\"><\/circle><circle cx=\"26\" cy=\"6\" r=\"6\" fill=\"#FFBD2E\" stroke=\"#DEA123\" stroke-width=\".5\"><\/circle><circle cx=\"46\" cy=\"6\" r=\"6\" fill=\"#27C93F\" stroke=\"#1AAB29\" stroke-width=\".5\"><\/circle><\/g><\/svg><\/span><span role=\"button\" tabindex=\"0\" data-code=\"npm install\" style=\"color:#d8dee9ff;display:none\" aria-label=\"Copy\" class=\"code-block-pro-copy-button\"><svg xmlns=\"http:\/\/www.w3.org\/2000\/svg\" style=\"width:24px;height:24px\" fill=\"none\" viewBox=\"0 0 24 24\" stroke=\"currentColor\" stroke-width=\"2\"><path class=\"with-check\" stroke-linecap=\"round\" stroke-linejoin=\"round\" d=\"M9 5H7a2 2 0 00-2 2v12a2 2 0 002 2h10a2 2 0 002-2V7a2 2 0 00-2-2h-2M9 5a2 2 0 002 2h2a2 2 0 002-2M9 5a2 2 0 012-2h2a2 2 0 012 2m-6 9l2 2 4-4\"><\/path><path class=\"without-check\" stroke-linecap=\"round\" stroke-linejoin=\"round\" d=\"M9 5H7a2 2 0 00-2 2v12a2 2 0 002 2h10a2 2 0 002-2V7a2 2 0 00-2-2h-2M9 5a2 2 0 002 2h2a2 2 0 002-2M9 5a2 2 0 012-2h2a2 2 0 012 2\"><\/path><\/svg><\/span><pre class=\"shiki nord\" style=\"background-color: #2e3440ff\" tabindex=\"0\"><code><span class=\"line\"><span style=\"color: #D8DEE9\">npm<\/span><span style=\"color: #D8DEE9FF\"> <\/span><span style=\"color: #D8DEE9\">install<\/span><\/span><\/code><\/pre><\/div>\n\n\n\n<p><\/p>\n\n\n\n<h3 class=\"wp-block-heading\">3. <code>npm install &lt;paket-ad\u0131><\/code><\/h3>\n\n\n\n<p>Belirli bir paketi y\u00fcklemek i\u00e7in kullan\u0131l\u0131r. <code>&lt;paket-ad\u0131><\/code> yerine y\u00fcklemek istedi\u011finiz paketin ad\u0131n\u0131 yaz\u0131n.<\/p>\n\n\n\n<div class=\"wp-block-kevinbatdorf-code-block-pro\" data-code-block-pro-font-family=\"Code-Pro-JetBrains-Mono\" style=\"font-size:.875rem;font-family:Code-Pro-JetBrains-Mono,ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,monospace;line-height:1.25rem;--cbp-tab-width:2;tab-size:var(--cbp-tab-width, 2)\"><span style=\"display:block;padding:16px 0 0 16px;margin-bottom:-1px;width:100%;text-align:left;background-color:#2e3440ff\"><svg xmlns=\"http:\/\/www.w3.org\/2000\/svg\" width=\"54\" height=\"14\" viewBox=\"0 0 54 14\"><g fill=\"none\" fill-rule=\"evenodd\" transform=\"translate(1 1)\"><circle cx=\"6\" cy=\"6\" r=\"6\" fill=\"#FF5F56\" stroke=\"#E0443E\" stroke-width=\".5\"><\/circle><circle cx=\"26\" cy=\"6\" r=\"6\" fill=\"#FFBD2E\" stroke=\"#DEA123\" stroke-width=\".5\"><\/circle><circle cx=\"46\" cy=\"6\" r=\"6\" fill=\"#27C93F\" stroke=\"#1AAB29\" stroke-width=\".5\"><\/circle><\/g><\/svg><\/span><span role=\"button\" tabindex=\"0\" data-code=\"npm install lodash\" style=\"color:#d8dee9ff;display:none\" aria-label=\"Copy\" class=\"code-block-pro-copy-button\"><svg xmlns=\"http:\/\/www.w3.org\/2000\/svg\" style=\"width:24px;height:24px\" fill=\"none\" viewBox=\"0 0 24 24\" stroke=\"currentColor\" stroke-width=\"2\"><path class=\"with-check\" stroke-linecap=\"round\" stroke-linejoin=\"round\" d=\"M9 5H7a2 2 0 00-2 2v12a2 2 0 002 2h10a2 2 0 002-2V7a2 2 0 00-2-2h-2M9 5a2 2 0 002 2h2a2 2 0 002-2M9 5a2 2 0 012-2h2a2 2 0 012 2m-6 9l2 2 4-4\"><\/path><path class=\"without-check\" stroke-linecap=\"round\" stroke-linejoin=\"round\" d=\"M9 5H7a2 2 0 00-2 2v12a2 2 0 002 2h10a2 2 0 002-2V7a2 2 0 00-2-2h-2M9 5a2 2 0 002 2h2a2 2 0 002-2M9 5a2 2 0 012-2h2a2 2 0 012 2\"><\/path><\/svg><\/span><pre class=\"shiki nord\" style=\"background-color: #2e3440ff\" tabindex=\"0\"><code><span class=\"line\"><span style=\"color: #D8DEE9\">npm<\/span><span style=\"color: #D8DEE9FF\"> <\/span><span style=\"color: #D8DEE9\">install<\/span><span style=\"color: #D8DEE9FF\"> <\/span><span style=\"color: #D8DEE9\">lodash<\/span><\/span><\/code><\/pre><\/div>\n\n\n\n<p><\/p>\n\n\n\n<h3 class=\"wp-block-heading\">4. <code>npm install --save-dev &lt;paket-ad\u0131><\/code><\/h3>\n\n\n\n<p>Geli\u015ftirme ba\u011f\u0131ml\u0131l\u0131\u011f\u0131 olarak bir paketi y\u00fcklemek i\u00e7in kullan\u0131l\u0131r. Bu paketler genellikle sadece geli\u015ftirme s\u00fcrecinde kullan\u0131l\u0131r ve \u00fcretim ortam\u0131na dahil edilmez<\/p>\n\n\n\n<div class=\"wp-block-kevinbatdorf-code-block-pro\" data-code-block-pro-font-family=\"Code-Pro-JetBrains-Mono\" style=\"font-size:.875rem;font-family:Code-Pro-JetBrains-Mono,ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,monospace;line-height:1.25rem;--cbp-tab-width:2;tab-size:var(--cbp-tab-width, 2)\"><span style=\"display:block;padding:16px 0 0 16px;margin-bottom:-1px;width:100%;text-align:left;background-color:#2e3440ff\"><svg xmlns=\"http:\/\/www.w3.org\/2000\/svg\" width=\"54\" height=\"14\" viewBox=\"0 0 54 14\"><g fill=\"none\" fill-rule=\"evenodd\" transform=\"translate(1 1)\"><circle cx=\"6\" cy=\"6\" r=\"6\" fill=\"#FF5F56\" stroke=\"#E0443E\" stroke-width=\".5\"><\/circle><circle cx=\"26\" cy=\"6\" r=\"6\" fill=\"#FFBD2E\" stroke=\"#DEA123\" stroke-width=\".5\"><\/circle><circle cx=\"46\" cy=\"6\" r=\"6\" fill=\"#27C93F\" stroke=\"#1AAB29\" stroke-width=\".5\"><\/circle><\/g><\/svg><\/span><span role=\"button\" tabindex=\"0\" data-code=\"npm install --save-dev jest\" style=\"color:#d8dee9ff;display:none\" aria-label=\"Copy\" class=\"code-block-pro-copy-button\"><svg xmlns=\"http:\/\/www.w3.org\/2000\/svg\" style=\"width:24px;height:24px\" fill=\"none\" viewBox=\"0 0 24 24\" stroke=\"currentColor\" stroke-width=\"2\"><path class=\"with-check\" stroke-linecap=\"round\" stroke-linejoin=\"round\" d=\"M9 5H7a2 2 0 00-2 2v12a2 2 0 002 2h10a2 2 0 002-2V7a2 2 0 00-2-2h-2M9 5a2 2 0 002 2h2a2 2 0 002-2M9 5a2 2 0 012-2h2a2 2 0 012 2m-6 9l2 2 4-4\"><\/path><path class=\"without-check\" stroke-linecap=\"round\" stroke-linejoin=\"round\" d=\"M9 5H7a2 2 0 00-2 2v12a2 2 0 002 2h10a2 2 0 002-2V7a2 2 0 00-2-2h-2M9 5a2 2 0 002 2h2a2 2 0 002-2M9 5a2 2 0 012-2h2a2 2 0 012 2\"><\/path><\/svg><\/span><pre class=\"shiki nord\" style=\"background-color: #2e3440ff\" tabindex=\"0\"><code><span class=\"line\"><span style=\"color: #D8DEE9\">npm<\/span><span style=\"color: #D8DEE9FF\"> <\/span><span style=\"color: #D8DEE9\">install<\/span><span style=\"color: #D8DEE9FF\"> <\/span><span style=\"color: #81A1C1\">--<\/span><span style=\"color: #D8DEE9\">save<\/span><span style=\"color: #81A1C1\">-<\/span><span style=\"color: #D8DEE9\">dev<\/span><span style=\"color: #D8DEE9FF\"> <\/span><span style=\"color: #D8DEE9\">jest<\/span><\/span><\/code><\/pre><\/div>\n\n\n\n<p><\/p>\n\n\n\n<h3 class=\"wp-block-heading\">5. <code>npm uninstall &lt;paket-ad\u0131><\/code><\/h3>\n\n\n\n<p>Bir paketi kald\u0131rmak i\u00e7in kullan\u0131l\u0131r. <code>&lt;paket-ad\u0131><\/code> yerine kald\u0131rmak istedi\u011finiz paketin ad\u0131n\u0131 yaz\u0131n.<\/p>\n\n\n\n<div class=\"wp-block-kevinbatdorf-code-block-pro\" data-code-block-pro-font-family=\"Code-Pro-JetBrains-Mono\" style=\"font-size:.875rem;font-family:Code-Pro-JetBrains-Mono,ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,monospace;line-height:1.25rem;--cbp-tab-width:2;tab-size:var(--cbp-tab-width, 2)\"><span style=\"display:block;padding:16px 0 0 16px;margin-bottom:-1px;width:100%;text-align:left;background-color:#2e3440ff\"><svg xmlns=\"http:\/\/www.w3.org\/2000\/svg\" width=\"54\" height=\"14\" viewBox=\"0 0 54 14\"><g fill=\"none\" fill-rule=\"evenodd\" transform=\"translate(1 1)\"><circle cx=\"6\" cy=\"6\" r=\"6\" fill=\"#FF5F56\" stroke=\"#E0443E\" stroke-width=\".5\"><\/circle><circle cx=\"26\" cy=\"6\" r=\"6\" fill=\"#FFBD2E\" stroke=\"#DEA123\" stroke-width=\".5\"><\/circle><circle cx=\"46\" cy=\"6\" r=\"6\" fill=\"#27C93F\" stroke=\"#1AAB29\" stroke-width=\".5\"><\/circle><\/g><\/svg><\/span><span role=\"button\" tabindex=\"0\" data-code=\"npm uninstall lodash\" style=\"color:#d8dee9ff;display:none\" aria-label=\"Copy\" class=\"code-block-pro-copy-button\"><svg xmlns=\"http:\/\/www.w3.org\/2000\/svg\" style=\"width:24px;height:24px\" fill=\"none\" viewBox=\"0 0 24 24\" stroke=\"currentColor\" stroke-width=\"2\"><path class=\"with-check\" stroke-linecap=\"round\" stroke-linejoin=\"round\" d=\"M9 5H7a2 2 0 00-2 2v12a2 2 0 002 2h10a2 2 0 002-2V7a2 2 0 00-2-2h-2M9 5a2 2 0 002 2h2a2 2 0 002-2M9 5a2 2 0 012-2h2a2 2 0 012 2m-6 9l2 2 4-4\"><\/path><path class=\"without-check\" stroke-linecap=\"round\" stroke-linejoin=\"round\" d=\"M9 5H7a2 2 0 00-2 2v12a2 2 0 002 2h10a2 2 0 002-2V7a2 2 0 00-2-2h-2M9 5a2 2 0 002 2h2a2 2 0 002-2M9 5a2 2 0 012-2h2a2 2 0 012 2\"><\/path><\/svg><\/span><pre class=\"shiki nord\" style=\"background-color: #2e3440ff\" tabindex=\"0\"><code><span class=\"line\"><span style=\"color: #D8DEE9\">npm<\/span><span style=\"color: #D8DEE9FF\"> <\/span><span style=\"color: #D8DEE9\">uninstall<\/span><span style=\"color: #D8DEE9FF\"> <\/span><span style=\"color: #D8DEE9\">lodash<\/span><\/span><\/code><\/pre><\/div>\n\n\n\n<p><\/p>\n\n\n\n<h3 class=\"wp-block-heading\">6. <code>npm update<\/code><\/h3>\n\n\n\n<p>T\u00fcm ba\u011f\u0131ml\u0131l\u0131klar\u0131 g\u00fcncellemek i\u00e7in kullan\u0131l\u0131r. G\u00fcncellenen paketler, <code>package.json<\/code> dosyas\u0131nda belirtilen s\u00fcr\u00fcmlere uygun olarak g\u00fcncellenir.<\/p>\n\n\n\n<div class=\"wp-block-kevinbatdorf-code-block-pro\" data-code-block-pro-font-family=\"Code-Pro-JetBrains-Mono\" style=\"font-size:.875rem;font-family:Code-Pro-JetBrains-Mono,ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,monospace;line-height:1.25rem;--cbp-tab-width:2;tab-size:var(--cbp-tab-width, 2)\"><span style=\"display:block;padding:16px 0 0 16px;margin-bottom:-1px;width:100%;text-align:left;background-color:#2e3440ff\"><svg xmlns=\"http:\/\/www.w3.org\/2000\/svg\" width=\"54\" height=\"14\" viewBox=\"0 0 54 14\"><g fill=\"none\" fill-rule=\"evenodd\" transform=\"translate(1 1)\"><circle cx=\"6\" cy=\"6\" r=\"6\" fill=\"#FF5F56\" stroke=\"#E0443E\" stroke-width=\".5\"><\/circle><circle cx=\"26\" cy=\"6\" r=\"6\" fill=\"#FFBD2E\" stroke=\"#DEA123\" stroke-width=\".5\"><\/circle><circle cx=\"46\" cy=\"6\" r=\"6\" fill=\"#27C93F\" stroke=\"#1AAB29\" stroke-width=\".5\"><\/circle><\/g><\/svg><\/span><span role=\"button\" tabindex=\"0\" data-code=\"npm update\" style=\"color:#d8dee9ff;display:none\" aria-label=\"Copy\" class=\"code-block-pro-copy-button\"><svg xmlns=\"http:\/\/www.w3.org\/2000\/svg\" style=\"width:24px;height:24px\" fill=\"none\" viewBox=\"0 0 24 24\" stroke=\"currentColor\" stroke-width=\"2\"><path class=\"with-check\" stroke-linecap=\"round\" stroke-linejoin=\"round\" d=\"M9 5H7a2 2 0 00-2 2v12a2 2 0 002 2h10a2 2 0 002-2V7a2 2 0 00-2-2h-2M9 5a2 2 0 002 2h2a2 2 0 002-2M9 5a2 2 0 012-2h2a2 2 0 012 2m-6 9l2 2 4-4\"><\/path><path class=\"without-check\" stroke-linecap=\"round\" stroke-linejoin=\"round\" d=\"M9 5H7a2 2 0 00-2 2v12a2 2 0 002 2h10a2 2 0 002-2V7a2 2 0 00-2-2h-2M9 5a2 2 0 002 2h2a2 2 0 002-2M9 5a2 2 0 012-2h2a2 2 0 012 2\"><\/path><\/svg><\/span><pre class=\"shiki nord\" style=\"background-color: #2e3440ff\" tabindex=\"0\"><code><span class=\"line\"><span style=\"color: #D8DEE9\">npm<\/span><span style=\"color: #D8DEE9FF\"> <\/span><span style=\"color: #D8DEE9\">update<\/span><\/span><\/code><\/pre><\/div>\n\n\n\n<p><\/p>\n\n\n\n<h3 class=\"wp-block-heading\">7. <code>npm start<\/code><\/h3>\n\n\n\n<p>Projenizi \u00e7al\u0131\u015ft\u0131rmak i\u00e7in kullan\u0131l\u0131r. Projenizdeki <code>start<\/code> komutunu \u00e7al\u0131\u015ft\u0131r\u0131r.<\/p>\n\n\n\n<div class=\"wp-block-kevinbatdorf-code-block-pro\" data-code-block-pro-font-family=\"Code-Pro-JetBrains-Mono\" style=\"font-size:.875rem;font-family:Code-Pro-JetBrains-Mono,ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,monospace;line-height:1.25rem;--cbp-tab-width:2;tab-size:var(--cbp-tab-width, 2)\"><span style=\"display:block;padding:16px 0 0 16px;margin-bottom:-1px;width:100%;text-align:left;background-color:#2e3440ff\"><svg xmlns=\"http:\/\/www.w3.org\/2000\/svg\" width=\"54\" height=\"14\" viewBox=\"0 0 54 14\"><g fill=\"none\" fill-rule=\"evenodd\" transform=\"translate(1 1)\"><circle cx=\"6\" cy=\"6\" r=\"6\" fill=\"#FF5F56\" stroke=\"#E0443E\" stroke-width=\".5\"><\/circle><circle cx=\"26\" cy=\"6\" r=\"6\" fill=\"#FFBD2E\" stroke=\"#DEA123\" stroke-width=\".5\"><\/circle><circle cx=\"46\" cy=\"6\" r=\"6\" fill=\"#27C93F\" stroke=\"#1AAB29\" stroke-width=\".5\"><\/circle><\/g><\/svg><\/span><span role=\"button\" tabindex=\"0\" data-code=\"npm start\" style=\"color:#d8dee9ff;display:none\" aria-label=\"Copy\" class=\"code-block-pro-copy-button\"><svg xmlns=\"http:\/\/www.w3.org\/2000\/svg\" style=\"width:24px;height:24px\" fill=\"none\" viewBox=\"0 0 24 24\" stroke=\"currentColor\" stroke-width=\"2\"><path class=\"with-check\" stroke-linecap=\"round\" stroke-linejoin=\"round\" d=\"M9 5H7a2 2 0 00-2 2v12a2 2 0 002 2h10a2 2 0 002-2V7a2 2 0 00-2-2h-2M9 5a2 2 0 002 2h2a2 2 0 002-2M9 5a2 2 0 012-2h2a2 2 0 012 2m-6 9l2 2 4-4\"><\/path><path class=\"without-check\" stroke-linecap=\"round\" stroke-linejoin=\"round\" d=\"M9 5H7a2 2 0 00-2 2v12a2 2 0 002 2h10a2 2 0 002-2V7a2 2 0 00-2-2h-2M9 5a2 2 0 002 2h2a2 2 0 002-2M9 5a2 2 0 012-2h2a2 2 0 012 2\"><\/path><\/svg><\/span><pre class=\"shiki nord\" style=\"background-color: #2e3440ff\" tabindex=\"0\"><code><span class=\"line\"><span style=\"color: #D8DEE9\">npm<\/span><span style=\"color: #D8DEE9FF\"> <\/span><span style=\"color: #D8DEE9\">start<\/span><\/span><\/code><\/pre><\/div>\n\n\n\n<p><\/p>\n\n\n\n<h3 class=\"wp-block-heading\">8. <code>npm run &lt;komut-ad\u0131&gt;<\/code><\/h3>\n\n\n\n<p><code>package.json<\/code> dosyas\u0131nda tan\u0131ml\u0131 olan \u00f6zel bir komutu \u00e7al\u0131\u015ft\u0131rmak i\u00e7in kullan\u0131l\u0131r. <code>&lt;komut-ad\u0131><\/code>, <code>scripts<\/code> b\u00f6l\u00fcm\u00fcnde tan\u0131mlad\u0131\u011f\u0131n\u0131z bir komut ad\u0131 olmal\u0131d\u0131r.<\/p>\n\n\n\n<div class=\"wp-block-kevinbatdorf-code-block-pro\" data-code-block-pro-font-family=\"Code-Pro-JetBrains-Mono\" style=\"font-size:.875rem;font-family:Code-Pro-JetBrains-Mono,ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,monospace;line-height:1.25rem;--cbp-tab-width:2;tab-size:var(--cbp-tab-width, 2)\"><span style=\"display:block;padding:16px 0 0 16px;margin-bottom:-1px;width:100%;text-align:left;background-color:#2e3440ff\"><svg xmlns=\"http:\/\/www.w3.org\/2000\/svg\" width=\"54\" height=\"14\" viewBox=\"0 0 54 14\"><g fill=\"none\" fill-rule=\"evenodd\" transform=\"translate(1 1)\"><circle cx=\"6\" cy=\"6\" r=\"6\" fill=\"#FF5F56\" stroke=\"#E0443E\" stroke-width=\".5\"><\/circle><circle cx=\"26\" cy=\"6\" r=\"6\" fill=\"#FFBD2E\" stroke=\"#DEA123\" stroke-width=\".5\"><\/circle><circle cx=\"46\" cy=\"6\" r=\"6\" fill=\"#27C93F\" stroke=\"#1AAB29\" stroke-width=\".5\"><\/circle><\/g><\/svg><\/span><span role=\"button\" tabindex=\"0\" data-code=\"npm run build\" style=\"color:#d8dee9ff;display:none\" aria-label=\"Copy\" class=\"code-block-pro-copy-button\"><svg xmlns=\"http:\/\/www.w3.org\/2000\/svg\" style=\"width:24px;height:24px\" fill=\"none\" viewBox=\"0 0 24 24\" stroke=\"currentColor\" stroke-width=\"2\"><path class=\"with-check\" stroke-linecap=\"round\" stroke-linejoin=\"round\" d=\"M9 5H7a2 2 0 00-2 2v12a2 2 0 002 2h10a2 2 0 002-2V7a2 2 0 00-2-2h-2M9 5a2 2 0 002 2h2a2 2 0 002-2M9 5a2 2 0 012-2h2a2 2 0 012 2m-6 9l2 2 4-4\"><\/path><path class=\"without-check\" stroke-linecap=\"round\" stroke-linejoin=\"round\" d=\"M9 5H7a2 2 0 00-2 2v12a2 2 0 002 2h10a2 2 0 002-2V7a2 2 0 00-2-2h-2M9 5a2 2 0 002 2h2a2 2 0 002-2M9 5a2 2 0 012-2h2a2 2 0 012 2\"><\/path><\/svg><\/span><pre class=\"shiki nord\" style=\"background-color: #2e3440ff\" tabindex=\"0\"><code><span class=\"line\"><span style=\"color: #D8DEE9\">npm<\/span><span style=\"color: #D8DEE9FF\"> <\/span><span style=\"color: #D8DEE9\">run<\/span><span style=\"color: #D8DEE9FF\"> <\/span><span style=\"color: #D8DEE9\">build<\/span><\/span><\/code><\/pre><\/div>\n\n\n\n<p>npm hakk\u0131nda daha fazla bilgi edinmek i\u00e7in <a>npm dok\u00fcmantasyonunu<\/a> ziyaret edebilirsiniz.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>npm (Node Package Manager), JavaScript projelerinizde ba\u011f\u0131ml\u0131l\u0131klar\u0131 y\u00f6netmek ve paketlerinizi da\u011f\u0131tmak i\u00e7in yayg\u0131n olarak kullan\u0131lan bir ara\u00e7t\u0131r. Bu yaz\u0131da, npm&#8217;nin temel komutlar\u0131n\u0131 ve bunlar\u0131n ne i\u015fe yarad\u0131\u011f\u0131na bir g\u00f6z atal\u0131m. 1. npm init Yeni bir proje olu\u015fturmak i\u00e7in bu komutu kullanabilirsiniz. Bu komut, bir proje dizininde package.json dosyas\u0131n\u0131 olu\u015fturman\u0131z\u0131 sa\u011flar. package.json, proje ba\u011f\u0131ml\u0131l\u0131klar\u0131n\u0131z\u0131 ve di\u011fer&#8230;<\/p>\n","protected":false},"author":2,"featured_media":37,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[13,25],"tags":[22,24,26,27],"class_list":["post-36","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-javascript","category-npm","tag-javascript","tag-node-js","tag-npm","tag-npm-komutlari"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v22.1 - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>npm Komutlar\u0131 - Turkiye GIS Developer Community<\/title>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/trgis.dev\/?p=36\" \/>\n<meta property=\"og:locale\" content=\"tr_TR\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"npm Komutlar\u0131 - Turkiye GIS Developer Community\" \/>\n<meta property=\"og:description\" content=\"npm (Node Package Manager), JavaScript projelerinizde ba\u011f\u0131ml\u0131l\u0131klar\u0131 y\u00f6netmek ve paketlerinizi da\u011f\u0131tmak i\u00e7in yayg\u0131n olarak kullan\u0131lan bir ara\u00e7t\u0131r. Bu yaz\u0131da, npm&#8217;nin temel komutlar\u0131n\u0131 ve bunlar\u0131n ne i\u015fe yarad\u0131\u011f\u0131na bir g\u00f6z atal\u0131m. 1. npm init Yeni bir proje olu\u015fturmak i\u00e7in bu komutu kullanabilirsiniz. Bu komut, bir proje dizininde package.json dosyas\u0131n\u0131 olu\u015fturman\u0131z\u0131 sa\u011flar. package.json, proje ba\u011f\u0131ml\u0131l\u0131klar\u0131n\u0131z\u0131 ve di\u011fer...\" \/>\n<meta property=\"og:url\" content=\"https:\/\/trgis.dev\/?p=36\" \/>\n<meta property=\"og:site_name\" content=\"Turkiye GIS Developer Community\" \/>\n<meta property=\"article:published_time\" content=\"2024-02-18T18:06:10+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2024-02-18T18:06:11+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/trgis.dev\/wp-content\/uploads\/2024\/02\/npm-logo.png\" \/>\n\t<meta property=\"og:image:width\" content=\"646\" \/>\n\t<meta property=\"og:image:height\" content=\"646\" \/>\n\t<meta property=\"og:image:type\" content=\"image\/png\" \/>\n<meta name=\"author\" content=\"Onurhan \u015eeremet\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:label1\" content=\"Yazan:\" \/>\n\t<meta name=\"twitter:data1\" content=\"Onurhan \u015eeremet\" \/>\n\t<meta name=\"twitter:label2\" content=\"Tahmini okuma s\u00fcresi\" \/>\n\t<meta name=\"twitter:data2\" content=\"2 dakika\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\/\/trgis.dev\/?p=36#article\",\"isPartOf\":{\"@id\":\"https:\/\/trgis.dev\/?p=36\"},\"author\":{\"name\":\"Onurhan \u015eeremet\",\"@id\":\"https:\/\/trgis.dev\/#\/schema\/person\/3afa683fa7e112c711df1e37d1035e08\"},\"headline\":\"npm Komutlar\u0131\",\"datePublished\":\"2024-02-18T18:06:10+00:00\",\"dateModified\":\"2024-02-18T18:06:11+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\/\/trgis.dev\/?p=36\"},\"wordCount\":269,\"commentCount\":0,\"publisher\":{\"@id\":\"https:\/\/trgis.dev\/#organization\"},\"keywords\":[\"Javascript\",\"Node.js\",\"npm\",\"npm komutlar\u0131\"],\"articleSection\":[\"JavaScript\",\"npm\"],\"inLanguage\":\"tr\",\"potentialAction\":[{\"@type\":\"CommentAction\",\"name\":\"Comment\",\"target\":[\"https:\/\/trgis.dev\/?p=36#respond\"]}]},{\"@type\":\"WebPage\",\"@id\":\"https:\/\/trgis.dev\/?p=36\",\"url\":\"https:\/\/trgis.dev\/?p=36\",\"name\":\"npm Komutlar\u0131 - Turkiye GIS Developer Community\",\"isPartOf\":{\"@id\":\"https:\/\/trgis.dev\/#website\"},\"datePublished\":\"2024-02-18T18:06:10+00:00\",\"dateModified\":\"2024-02-18T18:06:11+00:00\",\"breadcrumb\":{\"@id\":\"https:\/\/trgis.dev\/?p=36#breadcrumb\"},\"inLanguage\":\"tr\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/trgis.dev\/?p=36\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/trgis.dev\/?p=36#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Anasayfa\",\"item\":\"https:\/\/trgis.dev\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"npm Komutlar\u0131\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/trgis.dev\/#website\",\"url\":\"https:\/\/trgis.dev\/\",\"name\":\"Turkiye GIS Developer Community\",\"description\":\"Turkiye GIS Developer Community\",\"publisher\":{\"@id\":\"https:\/\/trgis.dev\/#organization\"},\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/trgis.dev\/?s={search_term_string}\"},\"query-input\":\"required name=search_term_string\"}],\"inLanguage\":\"tr\"},{\"@type\":\"Organization\",\"@id\":\"https:\/\/trgis.dev\/#organization\",\"name\":\"Turkiye GIS Developer Community\",\"url\":\"https:\/\/trgis.dev\/\",\"logo\":{\"@type\":\"ImageObject\",\"inLanguage\":\"tr\",\"@id\":\"https:\/\/trgis.dev\/#\/schema\/logo\/image\/\",\"url\":\"https:\/\/trgis.dev\/wp-content\/uploads\/2024\/02\/Logo.png\",\"contentUrl\":\"https:\/\/trgis.dev\/wp-content\/uploads\/2024\/02\/Logo.png\",\"width\":600,\"height\":400,\"caption\":\"Turkiye GIS Developer Community\"},\"image\":{\"@id\":\"https:\/\/trgis.dev\/#\/schema\/logo\/image\/\"}},{\"@type\":\"Person\",\"@id\":\"https:\/\/trgis.dev\/#\/schema\/person\/3afa683fa7e112c711df1e37d1035e08\",\"name\":\"Onurhan \u015eeremet\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"tr\",\"@id\":\"https:\/\/trgis.dev\/#\/schema\/person\/image\/\",\"url\":\"https:\/\/secure.gravatar.com\/avatar\/74b25aa7537e0be8c6cda02d4e2543c4c93919248b416ad07874318ec89a5551?s=96&d=retro&r=g\",\"contentUrl\":\"https:\/\/secure.gravatar.com\/avatar\/74b25aa7537e0be8c6cda02d4e2543c4c93919248b416ad07874318ec89a5551?s=96&d=retro&r=g\",\"caption\":\"Onurhan \u015eeremet\"},\"sameAs\":[\"https:\/\/www.linkedin.com\/in\/onurhan-seremet\"],\"url\":\"https:\/\/trgis.dev\/?author=2\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"npm Komutlar\u0131 - Turkiye GIS Developer Community","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/trgis.dev\/?p=36","og_locale":"tr_TR","og_type":"article","og_title":"npm Komutlar\u0131 - Turkiye GIS Developer Community","og_description":"npm (Node Package Manager), JavaScript projelerinizde ba\u011f\u0131ml\u0131l\u0131klar\u0131 y\u00f6netmek ve paketlerinizi da\u011f\u0131tmak i\u00e7in yayg\u0131n olarak kullan\u0131lan bir ara\u00e7t\u0131r. Bu yaz\u0131da, npm&#8217;nin temel komutlar\u0131n\u0131 ve bunlar\u0131n ne i\u015fe yarad\u0131\u011f\u0131na bir g\u00f6z atal\u0131m. 1. npm init Yeni bir proje olu\u015fturmak i\u00e7in bu komutu kullanabilirsiniz. Bu komut, bir proje dizininde package.json dosyas\u0131n\u0131 olu\u015fturman\u0131z\u0131 sa\u011flar. package.json, proje ba\u011f\u0131ml\u0131l\u0131klar\u0131n\u0131z\u0131 ve di\u011fer...","og_url":"https:\/\/trgis.dev\/?p=36","og_site_name":"Turkiye GIS Developer Community","article_published_time":"2024-02-18T18:06:10+00:00","article_modified_time":"2024-02-18T18:06:11+00:00","og_image":[{"width":646,"height":646,"url":"https:\/\/trgis.dev\/wp-content\/uploads\/2024\/02\/npm-logo.png","type":"image\/png"}],"author":"Onurhan \u015eeremet","twitter_card":"summary_large_image","twitter_misc":{"Yazan:":"Onurhan \u015eeremet","Tahmini okuma s\u00fcresi":"2 dakika"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/trgis.dev\/?p=36#article","isPartOf":{"@id":"https:\/\/trgis.dev\/?p=36"},"author":{"name":"Onurhan \u015eeremet","@id":"https:\/\/trgis.dev\/#\/schema\/person\/3afa683fa7e112c711df1e37d1035e08"},"headline":"npm Komutlar\u0131","datePublished":"2024-02-18T18:06:10+00:00","dateModified":"2024-02-18T18:06:11+00:00","mainEntityOfPage":{"@id":"https:\/\/trgis.dev\/?p=36"},"wordCount":269,"commentCount":0,"publisher":{"@id":"https:\/\/trgis.dev\/#organization"},"keywords":["Javascript","Node.js","npm","npm komutlar\u0131"],"articleSection":["JavaScript","npm"],"inLanguage":"tr","potentialAction":[{"@type":"CommentAction","name":"Comment","target":["https:\/\/trgis.dev\/?p=36#respond"]}]},{"@type":"WebPage","@id":"https:\/\/trgis.dev\/?p=36","url":"https:\/\/trgis.dev\/?p=36","name":"npm Komutlar\u0131 - Turkiye GIS Developer Community","isPartOf":{"@id":"https:\/\/trgis.dev\/#website"},"datePublished":"2024-02-18T18:06:10+00:00","dateModified":"2024-02-18T18:06:11+00:00","breadcrumb":{"@id":"https:\/\/trgis.dev\/?p=36#breadcrumb"},"inLanguage":"tr","potentialAction":[{"@type":"ReadAction","target":["https:\/\/trgis.dev\/?p=36"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/trgis.dev\/?p=36#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Anasayfa","item":"https:\/\/trgis.dev\/"},{"@type":"ListItem","position":2,"name":"npm Komutlar\u0131"}]},{"@type":"WebSite","@id":"https:\/\/trgis.dev\/#website","url":"https:\/\/trgis.dev\/","name":"Turkiye GIS Developer Community","description":"Turkiye GIS Developer Community","publisher":{"@id":"https:\/\/trgis.dev\/#organization"},"potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/trgis.dev\/?s={search_term_string}"},"query-input":"required name=search_term_string"}],"inLanguage":"tr"},{"@type":"Organization","@id":"https:\/\/trgis.dev\/#organization","name":"Turkiye GIS Developer Community","url":"https:\/\/trgis.dev\/","logo":{"@type":"ImageObject","inLanguage":"tr","@id":"https:\/\/trgis.dev\/#\/schema\/logo\/image\/","url":"https:\/\/trgis.dev\/wp-content\/uploads\/2024\/02\/Logo.png","contentUrl":"https:\/\/trgis.dev\/wp-content\/uploads\/2024\/02\/Logo.png","width":600,"height":400,"caption":"Turkiye GIS Developer Community"},"image":{"@id":"https:\/\/trgis.dev\/#\/schema\/logo\/image\/"}},{"@type":"Person","@id":"https:\/\/trgis.dev\/#\/schema\/person\/3afa683fa7e112c711df1e37d1035e08","name":"Onurhan \u015eeremet","image":{"@type":"ImageObject","inLanguage":"tr","@id":"https:\/\/trgis.dev\/#\/schema\/person\/image\/","url":"https:\/\/secure.gravatar.com\/avatar\/74b25aa7537e0be8c6cda02d4e2543c4c93919248b416ad07874318ec89a5551?s=96&d=retro&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/74b25aa7537e0be8c6cda02d4e2543c4c93919248b416ad07874318ec89a5551?s=96&d=retro&r=g","caption":"Onurhan \u015eeremet"},"sameAs":["https:\/\/www.linkedin.com\/in\/onurhan-seremet"],"url":"https:\/\/trgis.dev\/?author=2"}]}},"_links":{"self":[{"href":"https:\/\/trgis.dev\/index.php?rest_route=\/wp\/v2\/posts\/36","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/trgis.dev\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/trgis.dev\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/trgis.dev\/index.php?rest_route=\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/trgis.dev\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=36"}],"version-history":[{"count":1,"href":"https:\/\/trgis.dev\/index.php?rest_route=\/wp\/v2\/posts\/36\/revisions"}],"predecessor-version":[{"id":38,"href":"https:\/\/trgis.dev\/index.php?rest_route=\/wp\/v2\/posts\/36\/revisions\/38"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/trgis.dev\/index.php?rest_route=\/wp\/v2\/media\/37"}],"wp:attachment":[{"href":"https:\/\/trgis.dev\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=36"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/trgis.dev\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=36"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/trgis.dev\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=36"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}