Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Can't install some dependencies from non-standard NPM registry when run npm install #2874

Closed
quanzhuo opened this issue Jan 12, 2023 · 1 comment · Fixed by #2875
Closed
Assignees

Comments

@quanzhuo
Copy link
Contributor

Environment
  • Operating System: Ubuntu 22.04
  • JDK version: 17.0.5
  • Visual Studio Code version:
  • Java extension version: v1.13.0
Steps To Reproduce
  1. clone this repo
  2. checkout tag v1.13.0
  3. run npm install --verbose
Current Result

Some npm packages from https://repository.engineering.redhat.com/nexus/repository/ can't be installed due to network error. If I change these dependencies's download url to registry.npmjs.org in package-lock.json. the npm install command completed OK.

Question

Is there some difference between packages from repository.engineering.redhat.com and registry.npmjs.org ?

@rgrunber
Copy link
Member

rgrunber commented Jan 12, 2023

There should be no difference. Yes to replacing all entries in the resolved field with registry.npmjs.org as that's the proper approach. I wasn't able to reproduce your error though, even with a completely empty cache & node_modules. Looking into the issue, it seems like the resolved field is only used to avoid re-fetching package metadata when it exists locally (among other things). It also looks like your configured registry will always be used to fetch the packages (and not what's listed in the resolved field).

@datho7561 datho7561 added this to the Early January 2023 milestone Jan 12, 2023
@rgrunber rgrunber changed the title Can't install some dependencies from repository.engineering.redhat.com when run npm install Can't install some dependencies from non-standard NPM registry when run npm install Jul 4, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
Archived in project
Development

Successfully merging a pull request may close this issue.

3 participants