{"id":665,"date":"2021-01-15T15:45:01","date_gmt":"2021-01-15T15:45:01","guid":{"rendered":"https:\/\/jmrowe.com\/blog\/?p=665"},"modified":"2021-01-15T15:45:12","modified_gmt":"2021-01-15T15:45:12","slug":"npm-tips","status":"publish","type":"post","link":"https:\/\/jmrowe.com\/blog\/npm-tips\/","title":{"rendered":"Npm tips"},"content":{"rendered":"<p>To update all dependencies in a package.json to their latest versions.. can install this globally first(just once):<\/p>\n<pre class=\"lang:default decode:true\">npm install -g npm-check-updates<\/pre>\n<p>and then run below which will update the versions of each dependency to the latest<\/p>\n<pre class=\"lang:default decode:true\">ncu -u<\/pre>\n<p>finally run below to update all of the scripts to their latest. Note, this could be code breaking depending on version updates for your dependencies.<\/p>\n<pre class=\"lang:default decode:true \">npm install<\/pre>\n<p>&nbsp;<\/p>\n","protected":false},"excerpt":{"rendered":"<p>To update all dependencies in a package.json to their latest versions.. can install this globally first(just once): npm install -g npm-check-updates and then run below which will update the versions of each dependency to the latest ncu -u finally run below to update all of the scripts to their latest. Note, this could be code [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[12,19],"tags":[],"class_list":["post-665","post","type-post","status-publish","format-standard","hentry","category-javascript","category-node-npm"],"_links":{"self":[{"href":"https:\/\/jmrowe.com\/blog\/wp-json\/wp\/v2\/posts\/665","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/jmrowe.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/jmrowe.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/jmrowe.com\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/jmrowe.com\/blog\/wp-json\/wp\/v2\/comments?post=665"}],"version-history":[{"count":2,"href":"https:\/\/jmrowe.com\/blog\/wp-json\/wp\/v2\/posts\/665\/revisions"}],"predecessor-version":[{"id":667,"href":"https:\/\/jmrowe.com\/blog\/wp-json\/wp\/v2\/posts\/665\/revisions\/667"}],"wp:attachment":[{"href":"https:\/\/jmrowe.com\/blog\/wp-json\/wp\/v2\/media?parent=665"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/jmrowe.com\/blog\/wp-json\/wp\/v2\/categories?post=665"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/jmrowe.com\/blog\/wp-json\/wp\/v2\/tags?post=665"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}