Skip to content

Can't install private npm package with deno (but works with npm) #29869

@superior-framework

Description

@superior-framework

Version: Deno 2.3.3

When doing deno install with a correctly configured .npmrc, install fails with a 401. With the same setup with npm the install succeeds.

Repro:

  1. Unzip the repro project
  2. Try deno install and see it fail
  3. Try npm and see it installs

NOTE: The toke included with this project is set to expire in 90 days. It has limited read privileges.

Actual:

It fails with Deno.

$ deno install
error: Failed loading http://npm.pkg.github.com/@superiorframework%2flogger for package "@superiorframework/logger"

Caused by:
    Bad response: 401

    {"error":"authentication token not provided"}
$ npm install

added 5 packages, and audited 6 packages in 766ms

found 0 vulnerabilities

Expected:
It should install with Deno.

private-repo-repoduction-deno.zip

Image

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions