Skip to content

Revert "feat(add/install): default to npm registry for unprefixed packages (#33156) - #33214

Merged
bartlomieju merged 1 commit into
mainfrom
revert_33156
Apr 8, 2026
Merged

bartlomieju merged 1 commit into
mainfrom
revert_33156

Conversation

@bartlomieju

Copy link
Copy Markdown
Member

This reverts commit 6b44f6d.

This will be relanded for Deno v2.8.

@bartlomieju
bartlomieju merged commit b06fcf8 into main Apr 8, 2026
112 checks passed
@bartlomieju
bartlomieju deleted the revert_33156 branch April 8, 2026 18:26
bartlomieju added a commit that referenced this pull request May 2, 2026
…33246)

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.
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