I has been quite a while since I last wrote about support for npm in the Nexus Repository Manager. Back then I was very excited to announce that with version 2.9 we are offering npm support to everyone for free with the OSS edition. Since then it has been used by a lot of you and we have been working hard on version 3 of the Nexus Repository Manager.
With the recent release of milestone 6 of Nexus Repository Manager OSS 3, support for npm registries has gotten a whole lot better again. And to celebrate and show you how easy it is to get started I made some video demos.
More importantly however, you get to have your own private registry in the repository manager. You can host your own, internal packages and share them with others in your organization. This can include other developers and development teams, but also continuous integration servers, test setups or even production deployments.
And getting this all setup can be done in a couple of minutes. Check out the videos showing it all in action and use the documentation as a guide to get it all done in your own deployment.
Here are two videos on getting started with npm, and publishing npm pages to the Nexus repository. There are 30 videos in the complete “Tips from the Trenches” Series, available for free to TheNEXUS Community members.
How it works
It all boils down to a few simple steps to get the caching of packages working
- Download and install the Nexus Repository Manager
- Configure npm repositories
- Change the default registry for npm in .npmrc
And if you want to publish your own packages to the Nexus Repository Manager you just have to
- Activate the npm security realm
- Authenticate with npm login
- Update your package.json with a publishConfig
- Run npm publish
It’s is really that simple.
Compared to version 2, the version supports browsing in your npm repositories. You can search for specific packages and inspect their assets. npm login support makes authentication easier too.
So what are you waiting for? Get Nexus Repository Manager OSS 3 to access all these benefits. And once you have installed it for your npm usage, tell the rest of your team. You could use the same server for usage with
- Maven-format repositories for JVM based development, or
- NuGet-format repositories for .Net development or
- Docker-format registries
Get a boost in your DevOps efforts with the free Nexus Repository Manager OSS 3. You gonna love it.
Latest posts by Manfred Moser (see all)
- Integration with Nexus Repository 3 - June 8, 2016
- Sonatype Automated Deployments with Atlassian Bitbucket Pipelines - May 24, 2016
- Migrating to Nexus Repository 3 – Easy Peasy - May 11, 2016
- Puppet-eering the Nexus Repository Manager - May 2, 2016
- Impressions from DevOpsDays Vancouver 2016 - April 19, 2016