﻿
{"id":8568,"date":"2018-07-17T08:49:25","date_gmt":"2018-07-17T08:49:25","guid":{"rendered":"http:\/\/www.gencayyildiz.com\/blog\/?p=8568"},"modified":"2018-07-17T08:49:25","modified_gmt":"2018-07-17T08:49:25","slug":"node-paket-yoneticisi-npm-genel-bakis","status":"publish","type":"post","link":"https:\/\/www.gencayyildiz.com\/blog\/node-paket-yoneticisi-npm-genel-bakis\/","title":{"rendered":"Node Paket Y\u00f6neticisi (NPM) &#8211; Genel Bak\u0131\u015f"},"content":{"rendered":"<div id=\"fb-root\"><\/div>\n<p>Merhaba,<\/p>\n<p>Bu i\u00e7eri\u011fimizde Node.js i\u00e7in yaz\u0131lm\u0131\u015f olan paket y\u00f6neticisi \u00fczerine(NPM) konu\u015fuyor olaca\u011f\u0131z.<\/p>\n<h3>Paket Nedir?<\/h3>\n<p>Node.js&#8217;de her\u015fey ufak par\u00e7alara ayr\u0131lm\u0131\u015ft\u0131r ve bu ufak par\u00e7alar bir araya gelerek anlaml\u0131 bir b\u00fct\u00fcn\u00fc ifade etmektedirler. \u0130\u015fte bu par\u00e7alara bizler &#8220;paket&#8221; bir di\u011fer ad\u0131yla &#8220;mod\u00fcl&#8221; demekteyiz.<\/p>\n<p>\u00d6rne\u011fin; mail i\u015flemleri, \u015fifreleme i\u015flemleri, dil i\u015flemleri ve veritaban\u0131 i\u015flemleri vs. i\u00e7in farkl\u0131 paketler mevcuttur.<\/p>\n<p>Her\u015fey paket olarak tasarland\u0131\u011f\u0131ndan dolay\u0131, herhangi bir pakette olan yenili\u011fi kullanabilmek i\u00e7in komple Node.js&#8217;i g\u00fcncellemek zorunda kalmaks\u0131z\u0131n direkt olarak ilgili paketi g\u00fcncellememiz yeterli olmaktad\u0131r. Dolay\u0131s\u0131yla paket bazl\u0131 s\u00fcr\u00fcm g\u00fcncellemesi, komple framework&#8217;\u00fcn yeni versiyonunu gerektirmedi\u011finden dolay\u0131 Node.js&#8217;i olduk\u00e7a etkili bir yap\u0131ya b\u00fcr\u00fcnd\u00fcrmekte ve biz yaz\u0131l\u0131mc\u0131lara olduk\u00e7a h\u0131z ve zamandan olumlu maliyet kazand\u0131rmaktad\u0131r.<\/p>\n<p>E\u011fer ki Node.js&#8217;de ki hali haz\u0131rda bulunan t\u00fcm paketleri g\u00f6rmek istiyorsan\u0131z <a href=\"https:\/\/www.npmjs.com\/\" rel=\"noopener\" target=\"_blank\">www.npmjs.com<\/a> adresini inceleyebilirsiniz.<\/p>\n<h3>Paket Y\u00fckleme<\/h3>\n<p>Node.js&#8217;de bir paketi y\u00fcklemek i\u00e7in a\u015fa\u011f\u0131daki prototipte oldu\u011fu gibi bir komut vermeniz yeterli olacakt\u0131r.<\/p>\n<pre class=\"brush: plain; title: ; notranslate\" title=\"\">\r\nnpm install &#x5B;paket ad\u0131]\r\n<\/pre>\n<p>\u00d6rnek olarak <a href=\"https:\/\/www.npmjs.com\/package\/alasql\" rel=\"noopener\" target=\"_blank\">alasql<\/a> paketini a\u015fa\u011f\u0131daki gibi projemize y\u00fckleyebiliriz.<br \/>\n<a href=\"http:\/\/www.gencayyildiz.com\/blog\/wp-content\/uploads\/2018\/07\/Node-Paket-Y\u00f6neticisi-NPM-Paket-Y\u00fckleme.png\"><img loading=\"lazy\" decoding=\"async\" src=\"http:\/\/www.gencayyildiz.com\/blog\/wp-content\/uploads\/2018\/07\/Node-Paket-Y\u00f6neticisi-NPM-Paket-Y\u00fckleme.png\" alt=\"Node Paket Y\u00f6neticisi (NPM) - Paket Y\u00fckleme\" width=\"1038\" height=\"259\" class=\"aligncenter size-full wp-image-8573\" srcset=\"https:\/\/www.gencayyildiz.com\/blog\/wp-content\/uploads\/2018\/07\/Node-Paket-Y\u00f6neticisi-NPM-Paket-Y\u00fckleme.png 1038w, https:\/\/www.gencayyildiz.com\/blog\/wp-content\/uploads\/2018\/07\/Node-Paket-Y\u00f6neticisi-NPM-Paket-Y\u00fckleme-300x75.png 300w, https:\/\/www.gencayyildiz.com\/blog\/wp-content\/uploads\/2018\/07\/Node-Paket-Y\u00f6neticisi-NPM-Paket-Y\u00fckleme-768x192.png 768w, https:\/\/www.gencayyildiz.com\/blog\/wp-content\/uploads\/2018\/07\/Node-Paket-Y\u00f6neticisi-NPM-Paket-Y\u00fckleme-1024x256.png 1024w\" sizes=\"auto, (max-width: 1038px) 100vw, 1038px\" \/><\/a><\/p>\n<h3>Yerel ve Global Paketler<\/h3>\n<p>Birden \u00e7ok organize projeler \u00fczerinde \u00e7al\u0131\u015fd\u0131\u011f\u0131 durumlarda kimi mod\u00fcller projeye \u00f6zel kullan\u0131l\u0131rken kimisinde ise ortak kullan\u0131m sergilenmektedir. E\u011fer ki, bir paketi birden fazla projede ortak kullanacaksak her birine ayr\u0131 ayr\u0131 kurulum ger\u00e7ekle\u015ftirmektense, ilgili paketi global olarak kurarak tek seferde net \u00e7\u00f6z\u00fcm sa\u011flayabiliriz.<\/p>\n<p>Bu i\u015flem i\u00e7in a\u015fa\u011f\u0131daki prototipte \u00e7al\u0131\u015fmam\u0131z yeterli olacakt\u0131r.<\/p>\n<pre class=\"brush: plain; title: ; notranslate\" title=\"\">\r\nnpm install -g &#x5B;paket ad\u0131]\r\n<\/pre>\n<p>ya da<\/p>\n<pre class=\"brush: plain; title: ; notranslate\" title=\"\">\r\nnpm install -global &#x5B;paket ad\u0131]\r\n<\/pre>\n<p>\u00d6rnek olarak bu sefer alasql mod\u00fcl\u00fcn\u00fc global olarak a\u015fa\u011f\u0131daki gibi kurabiliriz.<br \/>\n<a href=\"http:\/\/www.gencayyildiz.com\/blog\/wp-content\/uploads\/2018\/07\/Node-Paket-Y\u00f6neticisi-NPM-Global-Paket-Y\u00fckleme.png\"><img loading=\"lazy\" decoding=\"async\" src=\"http:\/\/www.gencayyildiz.com\/blog\/wp-content\/uploads\/2018\/07\/Node-Paket-Y\u00f6neticisi-NPM-Global-Paket-Y\u00fckleme.png\" alt=\"Node Paket Y\u00f6neticisi (NPM) - Global Paket Y\u00fckleme\" width=\"1211\" height=\"115\" class=\"aligncenter size-full wp-image-8578\" srcset=\"https:\/\/www.gencayyildiz.com\/blog\/wp-content\/uploads\/2018\/07\/Node-Paket-Y\u00f6neticisi-NPM-Global-Paket-Y\u00fckleme.png 1211w, https:\/\/www.gencayyildiz.com\/blog\/wp-content\/uploads\/2018\/07\/Node-Paket-Y\u00f6neticisi-NPM-Global-Paket-Y\u00fckleme-300x28.png 300w, https:\/\/www.gencayyildiz.com\/blog\/wp-content\/uploads\/2018\/07\/Node-Paket-Y\u00f6neticisi-NPM-Global-Paket-Y\u00fckleme-768x73.png 768w, https:\/\/www.gencayyildiz.com\/blog\/wp-content\/uploads\/2018\/07\/Node-Paket-Y\u00f6neticisi-NPM-Global-Paket-Y\u00fckleme-1024x97.png 1024w\" sizes=\"auto, (max-width: 1211px) 100vw, 1211px\" \/><\/a><\/p>\n<h3>Paketlerin Varsay\u0131lan Y\u00fcklenme Adresleri<\/h3>\n<p>Paketlerin varsay\u0131lan y\u00fcklenme adreslerini local ve global olmak \u00fczere iki t\u00fcrl\u00fc g\u00f6rebiliriz.<\/p>\n<ul>\n<li><em><strong>Local paketler i\u00e7in;<\/strong><\/em>\n<pre class=\"brush: plain; title: ; notranslate\" title=\"\">\r\nnpm root\r\n<\/pre>\n<\/li>\n<li><em><strong>Global paketler i\u00e7in;<\/strong><\/em>\n<pre class=\"brush: plain; title: ; notranslate\" title=\"\">\r\nnpm root -g\r\n<\/pre>\n<p>ya da<\/p>\n<pre class=\"brush: plain; title: ; notranslate\" title=\"\">\r\nnpm root -global\r\n<\/pre>\n<\/li>\n<\/ul>\n<h3>Kurulu Paket Listesi<\/h3>\n<p>Kurulu paketlerin listelerinide local ve global olmak \u00fczere iki t\u00fcrl\u00fc elde edebiliriz.<\/p>\n<ul>\n<li>\n<em><strong>Local paketler i\u00e7in;<\/strong><\/em><\/p>\n<pre class=\"brush: plain; title: ; notranslate\" title=\"\">\r\nnpm list\r\n<\/pre>\n<p>Bu \u015fekilde alt mod\u00fcllerde dahil hepsi listelenecektir. E\u011fer ki sadece ana mod\u00fclleri listelemek istiyorsan\u0131z;<\/p>\n<pre class=\"brush: plain; title: ; notranslate\" title=\"\">\r\nnpm list -depth=0\r\n<\/pre>\n<p>\u015feklinde komutunuzu \u00e7al\u0131\u015ft\u0131rman\u0131z gerekmektedir.\n<\/li>\n<li>\n<em><strong>Global paketler i\u00e7in;<\/strong><\/em><\/p>\n<pre class=\"brush: plain; title: ; notranslate\" title=\"\">\r\nnpm list -g\r\n<\/pre>\n<p>ya da<\/p>\n<pre class=\"brush: plain; title: ; notranslate\" title=\"\">\r\nnpm list -global\r\n<\/pre>\n<p>Yukar\u0131da de\u011findi\u011fimiz benzer mant\u0131kta bu \u015fekilde alt mod\u00fcllerde dahil hepsi listelenecektir. E\u011fer ki sadece ana mod\u00fclleri listelemek istiyorsan\u0131z;<\/p>\n<pre class=\"brush: plain; title: ; notranslate\" title=\"\">\r\nnpm list -g --depth=0\r\n<\/pre>\n<p>ya da<\/p>\n<pre class=\"brush: plain; title: ; notranslate\" title=\"\">\r\nnpm list -global --depth=0\r\n<\/pre>\n<p>\u015feklinde komutunuzu \u00e7al\u0131\u015ft\u0131rman\u0131z gerekmektedir.\n<\/li>\n<\/ul>\n<h3>Package.json Dosyas\u0131<\/h3>\n<p>Package.json dosyas\u0131, Node.js&#8217;de paket ba\u011f\u0131ml\u0131l\u0131k y\u00f6netimini sa\u011flayabilmek ad\u0131na olu\u015fturulmu\u015f bir JSON dosyas\u0131d\u0131r. Kullanmak istedi\u011fimiz mod\u00fclleri i\u00e7erisine belirttikten sonra tek elden mod\u00fcl kurulumunu ger\u00e7ekle\u015ftirebiliyoruz.<\/p>\n<p>Package.json dosyas\u0131n\u0131 olu\u015fturabilmek i\u00e7in;<\/p>\n<pre class=\"brush: plain; title: ; notranslate\" title=\"\">\r\nnpm init\r\n<\/pre>\n<p>komutunun \u00e7al\u0131\u015ft\u0131r\u0131lmas\u0131 gerekmektedir.<\/p>\n<p>Bu komutu \u00e7al\u0131\u015ft\u0131rd\u0131ktan sonra sistem taraf\u0131ndan pe\u015fi s\u0131ra a\u015fa\u011f\u0131daki sorularla kar\u015f\u0131la\u015f\u0131lmaktad\u0131r;<\/p>\n<ul>\n<li><strong>package name<\/strong><br \/>\nPaket ismini belirtiniz.\n<\/li>\n<li><strong>version<\/strong><br \/>\nVersiyonu do\u011frulay\u0131n\u0131z.\n<\/li>\n<li><strong>description<\/strong><br \/>\nA\u00e7\u0131klama belirtiniz.\n<\/li>\n<li><strong>entry point<\/strong><br \/>\nProjenin ana dosyas\u0131n\u0131\/s\u0131n\u0131f\u0131n\u0131 belirtiniz..\n<\/li>\n<li><strong>test command<\/strong><br \/>\nTest sorgusu belirtiniz..\n<\/li>\n<li><strong>git repository<\/strong><br \/>\nGit kayna\u011f\u0131 belirtiniz.\n<\/li>\n<li><strong>keywords<\/strong><br \/>\nAnahtar s\u00f6zc\u00fck belirtiniz.\n<\/li>\n<li><strong>author<\/strong><br \/>\nYazar\u0131 belirtiniz.\n<\/li>\n<li><strong>lisence<\/strong><br \/>\nLisans\u0131 belirtiniz.\n<\/li>\n<\/ul>\n<p>Bu bilgileri opsiyonel olarak belirttikten sonra package.json dosyas\u0131 olu\u015fturulacakt\u0131r. \u0130\u00e7eri\u011fine g\u00f6z atarsak e\u011fer a\u015fa\u011f\u0131daki gibi json format\u0131nda bir veriyle kar\u015f\u0131la\u015f\u0131lmaktad\u0131r.<\/p>\n<pre class=\"brush: jscript; title: ; notranslate\" title=\"\">\r\n{\r\n  &quot;name&quot;: &quot;ecmascript&quot;,\r\n  &quot;version&quot;: &quot;1.0.0&quot;,\r\n  &quot;description&quot;: &quot;&quot;,\r\n  &quot;main&quot;: &quot;index.js&quot;,\r\n  &quot;dependencies&quot;: {\r\n    &quot;alasql&quot;: &quot;^0.4.8&quot;\r\n  },\r\n  &quot;devDependencies&quot;: {},\r\n  &quot;scripts&quot;: {\r\n    &quot;test&quot;: &quot;echo \\&quot;Error: no test specified\\&quot; &amp;&amp; exit 1&quot;\r\n  },\r\n  &quot;author&quot;: &quot;&quot;,\r\n  &quot;license&quot;: &quot;ISC&quot;\r\n}\r\n<\/pre>\n<p>E\u011fer ki yukar\u0131daki sorular\u0131 es ge\u00e7ip direkt olarak dosyas\u0131n\u0131n olu\u015fturulmas\u0131n\u0131 istiyorsan\u0131z komutu a\u015fa\u011f\u0131daki gibi yazman\u0131z yeterlidir.<\/p>\n<pre class=\"brush: plain; title: ; notranslate\" title=\"\">\r\nnpm init -y\r\n<\/pre>\n<p>E\u011fer ki projede package.json dosyas\u0131 olu\u015fturulmu\u015f ise paket y\u00fcklemelerinde y\u00fcklenen paketlerin package.json dosyas\u0131na kaydedilmesi i\u00e7in a\u015fa\u011f\u0131daki gibi komut yaz\u0131lmal\u0131d\u0131r.<\/p>\n<pre class=\"brush: plain; title: ; notranslate\" title=\"\">\r\nnpm install &#x5B;paket ad\u0131] --save\r\n<\/pre>\n<p>E\u011fer ki, package.json dosyas\u0131 i\u00e7erisindeki &#8220;dependencies&#8221; alan\u0131nda belirtilmi\u015f paketleri projeye tek elden y\u00fcklemek istiyorsan\u0131z a\u015fa\u011f\u0131daki komutu yazman\u0131z yeterli olacakt\u0131r.<\/p>\n<pre class=\"brush: plain; title: ; notranslate\" title=\"\">\r\nnpm install\r\n<\/pre>\n<h3>Bir Paketin Eski Versiyonunu Y\u00fckleme<\/h3>\n<p>E\u011fer ki y\u00fckleyece\u011finiz paketin eski versiyonunu istiyorsan\u0131z a\u015fa\u011f\u0131daki prototipte oldu\u011fu gibi komutunuzu yazman\u0131z gerekmektedir.<\/p>\n<pre class=\"brush: plain; title: ; notranslate\" title=\"\">\r\nnpm install &#x5B;paket ad\u0131]@&#x5B;versiyon]\r\n<\/pre>\n<p>\u00d6rne\u011fin;<\/p>\n<pre class=\"brush: plain; title: ; notranslate\" title=\"\">\r\nnpm install alasql@0.4.7\r\n<\/pre>\n<h3>Yeni Versiyonu Olan Paketleri Listeleme<\/h3>\n<p>Local ya da global t\u00fcm paketlerin yeni versiyonlar\u0131n\u0131 check ederek listeletebiliriz.<\/p>\n<pre class=\"brush: plain; title: ; notranslate\" title=\"\">\r\nnpm outdated\r\n<\/pre>\n<h3>Paket G\u00fcncelleme<\/h3>\n<p>Bir paketi son \u00e7\u0131kan versiyonu ile g\u00fcncellemek i\u00e7in a\u015fa\u011f\u0131daki gibi komut verilmesi gerekmektedir.<\/p>\n<pre class=\"brush: plain; title: ; notranslate\" title=\"\">\r\nnpm update &#x5B;paket ad\u0131]\r\n<\/pre>\n<p>E\u011fer ki son versiyonu \u00e7\u0131kan t\u00fcm paketleri g\u00fcncellemek istiyorsan\u0131z;<\/p>\n<pre class=\"brush: plain; title: ; notranslate\" title=\"\">\r\nnpm update\r\n<\/pre>\n<p>komutunu \u00e7al\u0131\u015ft\u0131rman\u0131z yeterlidir.<\/p>\n<h3>Ba\u011f\u0131ml\u0131l\u0131k Y\u00f6netimi<\/h3>\n<p>Kimi paketler vard\u0131r ki, sadece geli\u015ftirme ortam\u0131nda kullan\u0131lmaktad\u0131rlar lakin yay\u0131nda(canl\u0131 ortam) kullan\u0131lmamaktad\u0131rlar. Bu paketlerden hangisinin canl\u0131 ortama ta\u015f\u0131n\u0131p ta\u015f\u0131nmayaca\u011f\u0131n\u0131 package.json dosyas\u0131ndaki &#8220;dependencies&#8221; alan\u0131na ekli olup olmamas\u0131 belirlemektedir.<\/p>\n<pre class=\"brush: plain; title: ; notranslate\" title=\"\">\r\nnpm install &#x5B;paket ad\u0131] --save\r\n<\/pre>\n<p>\u015feklinde y\u00fcklenen bir paket direkt olarak &#8220;dependencies&#8221;e eklenece\u011finden dolay\u0131 ilgili paket hem geli\u015ftirme ortam\u0131nda hem de canl\u0131 ortamda kullan\u0131lacak manas\u0131na gelmektedir ve canl\u0131 ortamada ta\u015f\u0131nmaktad\u0131r.<\/p>\n<p>E\u011fer ki bir paketi sadece geli\u015ftirme ortam\u0131nda kullanmak istiyor ve canl\u0131 ortama ta\u015f\u0131mak istemiyorsak ilgili paketi &#8220;devDependencies&#8221; alan\u0131na eklememiz gerekmektedir. Bu i\u015flem i\u00e7in;<\/p>\n<pre class=\"brush: plain; title: ; notranslate\" title=\"\">\r\nnpm install &#x5B;paket ad\u0131] --save -dev\r\n<\/pre>\n<p>\u015feklinde komutumuzu yazmam\u0131z ilgili paketin &#8220;devDependencies&#8221; alan\u0131na eklenmesini sa\u011flayacakt\u0131r.<\/p>\n<h3>Script Tan\u0131mlama<\/h3>\n<p>Elimizde a\u015fa\u011f\u0131daki gibi bir script oldu\u011funu varsayal\u0131m.<\/p>\n<pre class=\"brush: jscript; title: ; notranslate\" title=\"\">\r\n--- module.js ---\r\nconst merhaba = () =&gt; {\r\n    console.log(&quot;Merhaba&quot;);\r\n};\r\n\r\nmerhaba();\r\n<\/pre>\n<p>Bu scripti \u00e7al\u0131\u015ft\u0131rmak i\u00e7in;<\/p>\n<pre class=\"brush: plain; title: ; notranslate\" title=\"\">\r\nnode module\r\n<\/pre>\n<p>\u015feklinde komutumuzu \u00e7al\u0131\u015ft\u0131rmam\u0131z gerekmektedir.<\/p>\n<p>Lakin ben bu \u015fekilde script dosya ad\u0131yla \u00e7al\u0131\u015fma yapmak istemiyorum diyorsan\u0131z package.json dosyas\u0131nda bu scripti a\u015fa\u011f\u0131daki gibi tan\u0131mlayabilir ve kullanabilirsiniz.<\/p>\n<pre class=\"brush: jscript; title: ; notranslate\" title=\"\">\r\n{\r\n  &quot;name&quot;: &quot;ECMAScript&quot;,\r\n  &quot;version&quot;: &quot;1.0.0&quot;,\r\n  &quot;description&quot;: &quot;&quot;,\r\n  &quot;main&quot;: &quot;index.js&quot;,\r\n  &quot;dependencies&quot;: {\r\n    &quot;alasql&quot;: &quot;^0.4.8&quot;\r\n  },\r\n  &quot;devDependencies&quot;: {},\r\n  &quot;scripts&quot;: {\r\n    &quot;merhaba&quot;: &quot;node module&quot;,\r\n    &quot;test&quot;: &quot;echo \\&quot;Error: no test specified\\&quot; &amp;&amp; exit 1&quot;\r\n  },\r\n  &quot;keywords&quot;: &#x5B;],\r\n  &quot;author&quot;: &quot;&quot;,\r\n  &quot;license&quot;: &quot;ISC&quot;\r\n}\r\n<\/pre>\n<p>Dikkat ederseniz &#8220;scripts&#8221; alt\u0131nda &#8220;merhaba&#8221; isimli bir de\u011fere &#8220;modul.js&#8221; scriptini \u00e7al\u0131\u015ft\u0131racak olan &#8220;node module&#8221; komutunu tan\u0131mlam\u0131\u015f bulunmaktay\u0131z. Bu noktadan itibaren a\u015fa\u011f\u0131daki gibi &#8220;merhaba&#8221; de\u011feri \u00fczerinden ilgili scripti \u00e7al\u0131\u015ft\u0131rabilmekteyiz.<\/p>\n<pre class=\"brush: plain; title: ; notranslate\" title=\"\">\r\nnpm run merhaba\r\n<\/pre>\n<p><a href=\"http:\/\/www.gencayyildiz.com\/blog\/wp-content\/uploads\/2018\/07\/Node-Paket-Y\u00f6neticisi-NPM-Script-Tan\u0131mlama.png\"><img loading=\"lazy\" decoding=\"async\" src=\"http:\/\/www.gencayyildiz.com\/blog\/wp-content\/uploads\/2018\/07\/Node-Paket-Y\u00f6neticisi-NPM-Script-Tan\u0131mlama.png\" alt=\"Node Paket Y\u00f6neticisi (NPM) - Script Tan\u0131mlama\" width=\"609\" height=\"129\" class=\"aligncenter size-full wp-image-8597\" srcset=\"https:\/\/www.gencayyildiz.com\/blog\/wp-content\/uploads\/2018\/07\/Node-Paket-Y\u00f6neticisi-NPM-Script-Tan\u0131mlama.png 609w, https:\/\/www.gencayyildiz.com\/blog\/wp-content\/uploads\/2018\/07\/Node-Paket-Y\u00f6neticisi-NPM-Script-Tan\u0131mlama-300x64.png 300w\" sizes=\"auto, (max-width: 609px) 100vw, 609px\" \/><\/a><\/p>\n<h3>Paket Kald\u0131rma<\/h3>\n<p>E\u011fer ki bir paketi silmek istiyorsan\u0131z a\u015fa\u011f\u0131daki kodu \u00e7al\u0131\u015ft\u0131rabilirsiniz.<\/p>\n<pre class=\"brush: plain; title: ; notranslate\" title=\"\">\r\nnpm uninstall &#x5B;paket ad\u0131]\r\n<\/pre>\n<p>Bu \u015fekilde paket hem fiziksel olarak hem de package.json dosyas\u0131ndan silinecektir.<\/p>\n<p>E\u011fer package.json dosyas\u0131ndan silinmesini istemiyorsan\u0131z;<\/p>\n<pre class=\"brush: plain; title: ; notranslate\" title=\"\">\r\nnpm uninstall &#x5B;paket ad\u0131] --no -save\r\n<\/pre>\n<p>\u015feklinde kodunuzu yazman\u0131z gerekmektedir.<\/p>\n<p>E\u011fer ki global paketleri silecekseniz;<\/p>\n<pre class=\"brush: plain; title: ; notranslate\" title=\"\">\r\nnpm install -g &#x5B;paket ad\u0131]\r\n<\/pre>\n<p>ya da<\/p>\n<pre class=\"brush: plain; title: ; notranslate\" title=\"\">\r\nnpm install -global &#x5B;paket ad\u0131]\r\n<\/pre>\n<p>\u015feklinde kodu \u00e7al\u0131\u015ft\u0131rman\u0131z yeterli olacakt\u0131r.<\/p>\n<p>Node paket y\u00f6neticisi(NPM) ile ilgili t\u00fcm konulara de\u011finmeye gayret ettim. Umar\u0131m bol bilgili ve faydal\u0131 bir i\u00e7erik sunmu\u015fumdur.<\/p>\n<p>Sonraki yaz\u0131lar\u0131mda g\u00f6r\u00fc\u015fmek \u00fczere&#8230;<br \/>\n\u0130yi \u00e7al\u0131\u015fmalar&#8230;<\/p>\n<!-- AddThis Advanced Settings generic via filter on the_content --><!-- AddThis Share Buttons generic via filter on the_content -->","protected":false},"excerpt":{"rendered":"<p>Merhaba, Bu i\u00e7eri\u011fimizde Node.js i\u00e7in yaz\u0131lm\u0131\u015f olan paket y\u00f6neticisi \u00fczerine(NPM) konu\u015fuyor olaca\u011f\u0131z. Paket Nedir? Node.js&#8217;de her\u015fey ufak par\u00e7alara ayr\u0131lm\u0131\u015ft\u0131r ve bu ufak par\u00e7alar bir araya gelerek anlaml\u0131 bir b\u00fct\u00fcn\u00fc ifade etmektedirler. \u0130\u015fte bu par\u00e7alara&#46;&#46;&#46;<!-- AddThis Advanced Settings generic via filter on get_the_excerpt --><!-- AddThis Share Buttons generic via filter on get_the_excerpt --><\/p>\n","protected":false},"author":1,"featured_media":8600,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[2145],"tags":[2468,2147,2149,2176,2467],"class_list":["post-8568","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-node-js","tag-node-paket-yoneticisi","tag-node-js","tag-npm","tag-package-json","tag-package-json-dosyasi"],"amp_enabled":true,"_links":{"self":[{"href":"https:\/\/www.gencayyildiz.com\/blog\/wp-json\/wp\/v2\/posts\/8568","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.gencayyildiz.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.gencayyildiz.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.gencayyildiz.com\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.gencayyildiz.com\/blog\/wp-json\/wp\/v2\/comments?post=8568"}],"version-history":[{"count":29,"href":"https:\/\/www.gencayyildiz.com\/blog\/wp-json\/wp\/v2\/posts\/8568\/revisions"}],"predecessor-version":[{"id":8601,"href":"https:\/\/www.gencayyildiz.com\/blog\/wp-json\/wp\/v2\/posts\/8568\/revisions\/8601"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.gencayyildiz.com\/blog\/wp-json\/wp\/v2\/media\/8600"}],"wp:attachment":[{"href":"https:\/\/www.gencayyildiz.com\/blog\/wp-json\/wp\/v2\/media?parent=8568"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.gencayyildiz.com\/blog\/wp-json\/wp\/v2\/categories?post=8568"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.gencayyildiz.com\/blog\/wp-json\/wp\/v2\/tags?post=8568"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}