{"id":2236,"date":"2018-09-07T12:53:19","date_gmt":"2018-09-07T17:53:19","guid":{"rendered":"https:\/\/bitpost.com\/news\/?p=2236"},"modified":"2018-09-07T12:53:19","modified_gmt":"2018-09-07T17:53:19","slug":"how-to-fix-your-node-apps-after-an-npm-bump","status":"publish","type":"post","link":"https:\/\/bitpost.com\/news\/2018\/how-to-fix-your-node-apps-after-an-npm-bump\/","title":{"rendered":"How to fix your node apps after an NPM bump"},"content":{"rendered":"<p>When NPM gets bumped, you start with an empty module cache.\u00a0 To restore it with optimal dependencies:<\/p>\n<blockquote>\n<pre>cd baseapp &amp;&amp; rm -rf node_modules &amp;&amp; npm -g install\r\ncd dependentapp &amp;&amp; rm -rf node_modules &amp;&amp; npm -g install\r\ncd thirdlevelapp &amp;&amp; rm -rf node_modules &amp;&amp; npm -g install<\/pre>\n<\/blockquote>\n<p>&nbsp;<\/p>\n","protected":false},"excerpt":{"rendered":"<p>When NPM gets bumped, you start with an empty module cache.\u00a0 To restore it with optimal dependencies: cd baseapp &amp;&amp; rm -rf node_modules &amp;&amp; npm -g install cd dependentapp &amp;&amp; rm -rf node_modules &amp;&amp; npm -g install cd thirdlevelapp &amp;&amp; rm -rf node_modules &amp;&amp; npm -g install &nbsp;<\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"jetpack_post_was_ever_published":false,"_jetpack_newsletter_access":"","_jetpack_dont_email_post_to_subs":false,"_jetpack_newsletter_tier_id":0,"_jetpack_memberships_contains_paywalled_content":false,"_jetpack_memberships_contains_paid_content":false,"footnotes":"","jetpack_publicize_message":"","jetpack_publicize_feature_enabled":true,"jetpack_social_post_already_shared":true,"jetpack_social_options":{"image_generator_settings":{"template":"highway","default_image_id":0,"enabled":false},"version":2}},"categories":[216,237],"tags":[],"class_list":["post-2236","post","type-post","status-publish","format-standard","hentry","category-node-js","category-rad-scripts"],"aioseo_notices":[],"jetpack_publicize_connections":[],"jetpack_featured_media_url":"","jetpack_sharing_enabled":true,"jetpack_shortlink":"https:\/\/wp.me\/p9M11L-A4","jetpack_likes_enabled":true,"_links":{"self":[{"href":"https:\/\/bitpost.com\/news\/wp-json\/wp\/v2\/posts\/2236","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/bitpost.com\/news\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/bitpost.com\/news\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/bitpost.com\/news\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/bitpost.com\/news\/wp-json\/wp\/v2\/comments?post=2236"}],"version-history":[{"count":1,"href":"https:\/\/bitpost.com\/news\/wp-json\/wp\/v2\/posts\/2236\/revisions"}],"predecessor-version":[{"id":2237,"href":"https:\/\/bitpost.com\/news\/wp-json\/wp\/v2\/posts\/2236\/revisions\/2237"}],"wp:attachment":[{"href":"https:\/\/bitpost.com\/news\/wp-json\/wp\/v2\/media?parent=2236"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/bitpost.com\/news\/wp-json\/wp\/v2\/categories?post=2236"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/bitpost.com\/news\/wp-json\/wp\/v2\/tags?post=2236"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}