npm Community Forum (Archive)

The npm community forum has been discontinued.

To discuss usage of npm, visit the GitHub Support Community.

how to access a nexus repository from npm

I have a package which I have to install in my project which is sitting in a nexus repo. The nexus repo is authenticated. I set the registry to the nexus repo but how do I login to that registry to install the package