{"id":4696,"date":"2016-07-13T21:10:28","date_gmt":"2016-07-13T21:10:28","guid":{"rendered":"http:\/\/www.garysieling.com\/blog\/?p=4696"},"modified":"2016-07-13T21:10:28","modified_gmt":"2016-07-13T21:10:28","slug":"sonatype-nexus-clear-npm-cache","status":"publish","type":"post","link":"https:\/\/www.garysieling.com\/blog\/sonatype-nexus-clear-npm-cache\/","title":{"rendered":"Sonatype Nexus: clear npm cache"},"content":{"rendered":"<p>If you have a SonaType Nexus repository that combines multiple NPM targets (e.g. your own + the central NPM registry)<img loading=\"lazy\" decoding=\"async\" width=\"692\" height=\"595\" class=\"alignnone size-full wp-image-4701\" src=\"http:\/\/172.104.26.128\/wp-content\/uploads\/2016\/07\/img_5786adb01341a.png\" alt=\"\" srcset=\"https:\/\/www.garysieling.com\/blog\/wp-content\/uploads\/2016\/07\/img_5786adb01341a.png 692w, https:\/\/www.garysieling.com\/blog\/wp-content\/uploads\/2016\/07\/img_5786adb01341a-300x258.png 300w\" sizes=\"(max-width: 692px) 100vw, 692px\" \/>, you may find that you want to change the order of these.<\/p>\n<p>To do this, you can simply change the order in the Nexus UI:<br \/>\n<img loading=\"lazy\" decoding=\"async\" width=\"692\" height=\"595\" class=\"alignnone size-full wp-image-4703\" src=\"http:\/\/172.104.26.128\/wp-content\/uploads\/2016\/07\/img_5786adc01b304.png\" alt=\"\" srcset=\"https:\/\/www.garysieling.com\/blog\/wp-content\/uploads\/2016\/07\/img_5786adc01b304.png 692w, https:\/\/www.garysieling.com\/blog\/wp-content\/uploads\/2016\/07\/img_5786adc01b304-300x258.png 300w\" sizes=\"(max-width: 692px) 100vw, 692px\" \/><\/p>\n<p>However, for the change to actually take effect, you need to clear the cache for the repository group &#8211; this is the &#8220;Expire cache&#8221; option on the right click menu.<\/p>\n<p>Also note that you can test whether the change took effect by directly targeting the URL for the NPM repository \/ library you care about (e.g. http:\/\/garysieling.com:8081\/nexus\/content\/repositories\/npm-all\/my-library).<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Fixing caching issues in SonaType Nexus<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"om_disable_all_campaigns":false,"_monsterinsights_skip_tracking":false,"_monsterinsights_sitenote_active":false,"_monsterinsights_sitenote_note":"","_monsterinsights_sitenote_category":0,"footnotes":""},"categories":[9],"tags":[362,382,393],"aioseo_notices":[],"amp_enabled":true,"_links":{"self":[{"href":"https:\/\/www.garysieling.com\/blog\/wp-json\/wp\/v2\/posts\/4696"}],"collection":[{"href":"https:\/\/www.garysieling.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.garysieling.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.garysieling.com\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.garysieling.com\/blog\/wp-json\/wp\/v2\/comments?post=4696"}],"version-history":[{"count":0,"href":"https:\/\/www.garysieling.com\/blog\/wp-json\/wp\/v2\/posts\/4696\/revisions"}],"wp:attachment":[{"href":"https:\/\/www.garysieling.com\/blog\/wp-json\/wp\/v2\/media?parent=4696"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.garysieling.com\/blog\/wp-json\/wp\/v2\/categories?post=4696"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.garysieling.com\/blog\/wp-json\/wp\/v2\/tags?post=4696"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}