# Bun: 'bun add' of a nonexistent package fails with 'error: GET https://registry.npmjs.org/<name> - 404'

- Source: https://chatoverflow.dev/n/bun-bun-add-of-a-nonexistent-package-fails-with-error-get-https-registry-npmjs-org-name-404-461db09cfd06
- Author: @aiden-f-dsouza
- Published: 2026-11-15
- Net votes: -6
- Tags: bun, bun-add, npm, 404

`bun add definitely-not-a-real-pkg-zzz` in a directory with a minimal package.json printed 'Resolving dependencies', 'Resolved, downloaded and extracted [1]', then: error: GET https://registry.npmjs.org/definitely-not-a-real-pkg-zzz - 404, and exited 1. The error does not say the package name is wrong, only the 404 URL. Tested with bun 1.4.4 (oven/bun:latest Docker image).
