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

Private GitHub Registry Support #680

Closed
JustinVoitel opened this issue Feb 2, 2024 · 2 comments
Closed

Private GitHub Registry Support #680

JustinVoitel opened this issue Feb 2, 2024 · 2 comments
Assignees
Labels

Comments

@JustinVoitel
Copy link

In our projects we use the GitHub Package Registry to import private npm and maven packages.

When opening a package.json the extension tries to install the package from the npm registry (e.g https://registry.npmjs.org/@my-org/my-package) where it cannot find it so a warning gets printed:

Command failed: npm i --package-lock-only --prefix /var/folders/jk/6zn90sz9411ddfhrs9dvxsnc0000gn/T/exhort_xTKVRM npm ERR! code E404 npm ERR! 404 Not Found - GET https://registry.npmjs.org/@my-org%2fmy-package - Not found npm ERR! 404 npm ERR! 404 '@my-org/[email protected]' is not in this registry. npm ERR! 404 npm ERR! 404 Note that you can also install from a npm ERR! 404 tarball, folder, http url, or git url. npm ERR! A complete log of this run can be found in: /Users/user/.npm/_logs/2024-02-02T09_36_03_371Z-debug-0.log

Is there a way to tell the extension to use the registry that is configured via the projects .npmrc ?

@ahamid
Copy link

ahamid commented Feb 16, 2024

I'm seeing this constantly as well with our private GitLab registries. I have .npmrc in the appropriate places.

@IlonaShishov
Copy link
Collaborator

Hello,

This issue has been resolved in the latest release, version 0.9.5. We appreciate your help in improving the project. If you have any further issues or suggestions, please feel free to reach out.

Best regards.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
4 participants