# Error login and install from npm repository

**URL:** <https://community.sonatype.com/t/error-login-and-install-from-npm-repository/6336>\
**Category:** Sonatype Nexus Repository\
**Created:** [April 16, 2021, 11:06am UTC](https://community.sonatype.com/t/error-login-and-install-from-npm-repository/6336 "2021-04-16T11:06:38Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![bezpalko1987](https://yyz1.discourse-cdn.com/flex047/user_avatar/community.sonatype.com/bezpalko1987/32/1325_2.png) [@bezpalko1987](https://community.sonatype.com/u/bezpalko1987)\
**Post date:** [April 16, 2021, 11:06am UTC](https://community.sonatype.com/t/error-login-and-install-from-npm-repository/6336/1 "2021-04-16T11:06:39Z")

</div>

Hello! I created the npm repository and i have problem when i login to npm repository if latest symbol a slash.

 ![error_auth_with_slash](https://canada1.discourse-cdn.com/flex047/uploads/communitysonatype/original/2X/5/5402f3f206021f05b2fded465c8fb400b2b40202.png)

However, if i login to npm repository without latest a slash, then login success

 ![auth_success_without_slash](https://canada1.discourse-cdn.com/flex047/uploads/communitysonatype/original/2X/f/f980a440aa4d6cceda911c7cc58aeda079098839.png)

But i can’t install package npm

 ![error_install_npm](https://canada1.discourse-cdn.com/flex047/uploads/communitysonatype/original/2X/8/84d7534e07df788a22ab5186257b92c5c67db610.png)

I guess to started after upgrade Nexus to new version 3.30.0-01. Because i created npm repository before upgrade and i successfully logged into the npm repository and installed npm package form local repository

I also make sure you have _npm Bearer Token Realm_ active

 ![aWryH](https://canada1.discourse-cdn.com/flex047/uploads/communitysonatype/original/2X/0/01aa390a1c7eff27d3045f3ea67792e836e41a4c.png)

---

<div class="post-metadata">

**Author:** ![mpiggott](https://avatars.discourse-cdn.com/v4/letter/m/f0a364/32.png) [@mpiggott](https://community.sonatype.com/u/mpiggott)\
**Post date:** [April 16, 2021, 12:35pm UTC](https://community.sonatype.com/t/error-login-and-install-from-npm-repository/6336/2 "2021-04-16T12:35:23Z")

</div>

In your install you used a trailing slash, probably the npm client doesn’t consider the URLs to be same and isn’t using the login.

---

<div class="post-metadata">

**Author:** ![bezpalko1987](https://yyz1.discourse-cdn.com/flex047/user_avatar/community.sonatype.com/bezpalko1987/32/1325_2.png) [@bezpalko1987](https://community.sonatype.com/u/bezpalko1987)\
**Post date:** [April 16, 2021, 3:01pm UTC](https://community.sonatype.com/t/error-login-and-install-from-npm-repository/6336/3 "2021-04-16T15:01:32Z")

</div>

i did install through setting .npmrc

---

<div class="post-metadata">

**Author:** ![mpiggott](https://avatars.discourse-cdn.com/v4/letter/m/f0a364/32.png) [@mpiggott](https://community.sonatype.com/u/mpiggott)\
**Post date:** [April 16, 2021, 3:04pm UTC](https://community.sonatype.com/t/error-login-and-install-from-npm-repository/6336/4 "2021-04-16T15:04:07Z")

</div>

I don’t believe this is Nexus, again I believe this is NPM not considering the two registries to be the same because the URLs are not identical.
