Gary Sieling

Sonatype Nexus: clear npm cache

If you have a SonaType Nexus repository that combines multiple NPM targets (e.g. your own + the central NPM registry), you may find that you want to change the order of these.

To do this, you can simply change the order in the Nexus UI:

However, for the change to actually take effect, you need to clear the cache for the repository group – this is the “Expire cache” option on the right click menu.

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).

Exit mobile version