Open simllll opened 2 years ago
maybe related https://github.com/npm/cli/issues/3284
Can you use npm adduser
with your registry and then edit your .npmrc to include always-auth=true
? Please re-open if this you're still having this issue.
Hi @fritzy , thanks for coming back to me. It's not about the registry authentication, it's about the http authentication (Basic auth), and also about the network port. The issue is on the "http layer". The endpoint url is missing the port, username and password from the original url.
@fritzy please reopen this one!
@simllll can you fetch the json representing one of the packages (i.e. http://somehost/@sentry%2ftypes) and post it here? if it's not feasible to post the result in its entirety, the things i'm interested in are the _resolved
and dist
properties of version 6.17.4
do you have a package-lock.json already? if so, do the resolved
values in your package-lock.json look correct?
Possibly related: npm repo
also drops port number from the repository URL set up in package.json.
npm version 10.5.0.
This is still happening on npm install
10.7.0 and 10.8.2
Is there an existing issue for this?
This issue exists in the latest npm version
Current Behavior
I've set up a custom npm registry with verdaccio. This registry is besides some firewall rules, only accessable with a http basic auth. Therefore my repository urls look like: http://user:pwd@somehost:someport/
If I run npm install now, it downloads all packages, and when it reaches the reify stage, it tries to load some metadata again I guess, but now it tries to donwload it from http://somehost/ <-- username, password and port are lost in the url? It's not a debug messgae fail, I also checked the network traffic.
It gets stuck on this kind of log messages: => => # npm sill tarball no local data for depd@http://somehost/depd/-/depd-1.1.2.tgz. Extracting by manifest.
=> => # npm sill tarball no local data for @sentry/types@http://somehost/@sentry%2ftypes/-/types-6.17.4.tgz. Extracting by manifest.
=> => # npm sill tarball no local data for @sentry/utils@http://somehost/@sentry%2futils/-/utils-6.17.4.tgz. Extracting by manifest.
=> => # npm sill tarball no local data for @sentry/types@http://somehost/@sentry%2ftypes/-/types-6.17.4.tgz. Extracting by manifest.
=> => # npm sill tarball no local data for @sentry/utils@http://somehost/@sentry%2futils/-/utils-6.17.4.tgz. Extracting by manifest.
=> => # npm sill tarball no local data for debug@http://somehost/debug/-/debug-2.6.9.tgz. Extracting by manifest.
Expected Behavior
It should always use the correct version of the npm registry url, and should not "modify" it.
Steps To Reproduce
Environment