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

Unable to resolve dev dependencies from private npm registry #26892

Open
lethanhan97 opened this issue Nov 16, 2024 · 1 comment
Open

Unable to resolve dev dependencies from private npm registry #26892

lethanhan97 opened this issue Nov 16, 2024 · 1 comment

Comments

@lethanhan97
Copy link

Version: Deno 2.0.6

Problem Description

We have a private repository hosted on gitlab. In .npmrc, we have the following

@prefix:registry=https://gitlab.private.whatever

In a deno project using Deno 2.0.6, I install the private sample-lib module like so

deno install npm:@prefix:sample-lib

The installation works as expected

sample-lib has a dependency on protobufjs, which has a dependency on minimal

When running the app, I'm faced with the error

[ERR_MODULE_NOT_FOUND] Cannot find module 'file:///Users/my-user/Library/Caches/deno/npm/registry.npmjs.org/protobufjs/7.4.0/minimal' imported from 'file:///Users/my-user/Library/Caches/deno/npm/gitlab.private.whatever/api/v4/packages/npm/@prefix/sample-lib/5.3.62/dist/esm/index.js'

Note that this lib has been long running and working fine with npm and .npmrc setup

What could be causing this problem here? Judging from the error message, seems like deno di not install sample-lib's dependencies?

Thank you guys in advance 🙇

@marvinhagemeister
Copy link
Contributor

You listed running deno install npm:@prefix:sample-lib to install it. Is the colon a typo and you used a /?

- deno install npm:@prefix:sample-lib
+ deno install npm:@prefix/sample-lib

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

2 participants