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

[deno-loader] Wrong path when using private NPM registry for islands #2709

Open
joeftiger opened this issue Oct 14, 2024 · 0 comments
Open

Comments

@joeftiger
Copy link

I am using GitHub's private NPM registry with the following .npmrc scheme:

//npm.pkg.github.com/:_authToken=...
@my_org:registry=https://npm.pkg.github.com

While running deno checks and deno task start work without problems, they start occuring once I try to open the webpage.
Islands relying on imports from the private registry end up with errors like following:

islands/MyIsland.tsx:5:24: ERROR: [plugin: deno-loader] The system cannot find the path specified. (os error 3): stat '...\AppData\Local\deno\npm\registry.npmjs.org\@my_org\my_module\0.0.3'

I don't know why, but it is using registry.npmjs.org inside the path instead of npm.pkg.github.com. The former obviously doesn't contain the private modules/packages.

As I am using Windows, I tried using a shortcut link from registry.npmjs.org\@my_org to npm.pkg.github.com\@my_org, but without success as it doesn't follow the symlink.

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

No branches or pull requests

1 participant