Skip to content

feat(add/install): default to npm registry for unprefixed packages#33246

Open
bartlomieju wants to merge 1 commit intomainfrom
reland/npm-default-registry
Open

feat(add/install): default to npm registry for unprefixed packages#33246
bartlomieju wants to merge 1 commit intomainfrom
reland/npm-default-registry

Conversation

@bartlomieju
Copy link
Copy Markdown
Member

Reland of #33156, which was reverted in #33214 to be relanded for Deno v2.8.


Before:

$ deno install npm:express npm:react
$ deno install --npm express react
$ deno install jsr:@std/async

After:

$ deno install express react jsr:@std/async

Makes deno add express and deno install express work without
requiring the npm: prefix or --npm flag. Since npm is by far the
most common registry for package installation, this removes friction
for the most common use case.

The --jsr flag is still available to override the default to jsr,
and explicit jsr: / npm: prefixes always take precedence.

…33156)

Before:
```
$ deno install npm:express npm:react
$ deno install --npm express react
$ deno install jsr:@std/async
```
After:
```
$ deno install express react jsr:@std/async
```

---------

Co-authored-by: Claude Opus 4.6 (1M context) <[email protected]>
@bartlomieju bartlomieju modified the milestones: 3.0, 2.8.0 Apr 12, 2026
@bartlomieju bartlomieju changed the title reland: feat(add/install): default to npm registry for unprefixed packages feat(add/install): default to npm registry for unprefixed packages Apr 12, 2026
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

Successfully merging this pull request may close these issues.

1 participant