{"id":1367,"date":"2017-08-26T17:23:44","date_gmt":"2017-08-26T08:23:44","guid":{"rendered":"http:\/\/www.santoshkori.com\/blog\/?p=1367"},"modified":"2017-08-26T17:23:44","modified_gmt":"2017-08-26T08:23:44","slug":"how-to-upgrade-update-npm-vesion","status":"publish","type":"post","link":"https:\/\/www.santoshkori.com\/blog\/how-to-upgrade-update-npm-vesion\/","title":{"rendered":"How to upgrade\/ update npm vesion"},"content":{"rendered":"<p>This is the new best way to upgrade npm on Windows.<br \/>\nFollow below steps<\/p>\n<p>Go to Window<\/p>\n<p>Type\u00a0Run <strong>PowerShell<\/strong> and open as Administrator<\/p>\n<p>First: Run command -&gt;<\/p>\n<pre><code>Set-ExecutionPolicy Unrestricted -Scope CurrentUser -Force<\/code><\/pre>\n<p>Secondly:<\/p>\n<pre><code>npm install -g npm-windows-upgrade<\/code><\/pre>\n<p>and then<\/p>\n<pre><code>npm-windows-upgrade<\/code><\/pre>\n<p>Note: Do not run\u00a0<code>npm i -g npm<\/code>. Instead use\u00a0<code>npm-windows-upgrade<\/code>\u00a0to update npm going forward. Also if you run the NodeJS installer, it will replace the node version.<\/p>\n<ul>\n<li>Upgrades npm in-place, where node installed it.<\/li>\n<li>Easy updating, update to the latest by running\u00a0<code>npm-windows-upgrade -p -v latest<\/code>.<\/li>\n<li>Does not modify the default path.<\/li>\n<li>Does not change the default global package location.<\/li>\n<li>Allows easy upgrades and downgrades.<\/li>\n<li><a href=\"https:\/\/github.com\/npm\/npm\/wiki\/Troubleshooting#upgrading-on-windows\" rel=\"noreferrer noopener\" target=\"_blank\">Officially recommended by the NPM team<\/a>.<\/li>\n<li>A list of versions matched between NPM and NODE (<a href=\"https:\/\/nodejs.org\/en\/download\/releases\/\" rel=\"noreferrer noopener\" target=\"_blank\">https:\/\/nodejs.org\/en\/download\/releases\/<\/a>) &#8211; but you will need to download NODE INSTALLER and run that to update node (<a href=\"https:\/\/nodejs.org\/en\/\" rel=\"noreferrer noopener\" target=\"_blank\">https:\/\/nodejs.org\/en\/<\/a>)<\/li>\n<\/ul>\n","protected":false},"excerpt":{"rendered":"<p>This is the new best way to upgrade npm on Windows. Follow below steps Go to Window Type\u00a0Run PowerShell and open as Administrator First: Run command -&gt; Set-ExecutionPolicy Unrestricted -Scope CurrentUser -Force Secondly: npm install -g npm-windows-upgrade and then npm-windows-upgrade Note: Do not run\u00a0npm i -g npm. Instead use\u00a0npm-windows-upgrade\u00a0to update npm going forward. Also if [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[16],"tags":[115,718,717,714,716,715],"class_list":["post-1367","post","type-post","status-publish","format-standard","hentry","category-just-blogging","tag-how-to","tag-how-to-update-npm","tag-how-to-upgrade-npm","tag-npm","tag-update-npm","tag-upgrade-npm"],"_links":{"self":[{"href":"https:\/\/www.santoshkori.com\/blog\/wp-json\/wp\/v2\/posts\/1367","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.santoshkori.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.santoshkori.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.santoshkori.com\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.santoshkori.com\/blog\/wp-json\/wp\/v2\/comments?post=1367"}],"version-history":[{"count":1,"href":"https:\/\/www.santoshkori.com\/blog\/wp-json\/wp\/v2\/posts\/1367\/revisions"}],"predecessor-version":[{"id":1368,"href":"https:\/\/www.santoshkori.com\/blog\/wp-json\/wp\/v2\/posts\/1367\/revisions\/1368"}],"wp:attachment":[{"href":"https:\/\/www.santoshkori.com\/blog\/wp-json\/wp\/v2\/media?parent=1367"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.santoshkori.com\/blog\/wp-json\/wp\/v2\/categories?post=1367"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.santoshkori.com\/blog\/wp-json\/wp\/v2\/tags?post=1367"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}