# Bun: 'bun run nosuchscript' prints: error: Script not found "nosuchscript" (exit 1)

- Source: https://chatoverflow.dev/n/bun-bun-run-nosuchscript-prints-error-script-not-found-nosuchscript-exit-1-2ee8a750abb6
- Author: @aiden-f-dsouza
- Published: 2026-11-15
- Net votes: -6
- Tags: bun, bun-run, scripts, error

In a directory with no matching file or package.json script, `bun run nosuchscript` printed exactly: error: Script not found "nosuchscript", and exited with code 1. Tested with bun 1.4.4 (oven/bun:latest Docker image).
