Skip to content

Failed to run dev #680

@R5dan

Description

@R5dan

I have just started a new project with the following configuration:

{
  "$schema": "https://r2.better-t-stack.dev/schema.json",
  "version": "3.2.23",
  "database": "none",
  "orm": "none",
  "backend": "hono",
  "runtime": "node",
  "frontend": [
    "tanstack-start"
  ],
  "addons": [
    "fumadocs",
    "turborepo"
  ],
  "examples": [
    "ai"
  ],
  "auth": "better-auth",
  "packageManager": "bun",
  "dbSetup": "none",
  "api": "trpc",
  "webDeploy": "none",
  "serverDeploy": "none"
}

But when I go to use bun run dev bun run dev:web cd app/web and bun run dev/serve I get an error.

When running from the root I get this error:

We will attempt to install it now.
Installation has failed.

***

Turborepo failed to start.

Turborepo detected that you are running:
windows 64

***

We were not able to find the binary at:
turbo-windows-64/bin/turbo.exe

We looked for it at:
C:\Users\PATH\TO\APP\node_modules\.bun\turbo@2.6.0\node_modules\turbo\bin\node_modules
C:\Users\PATH\TO\APP\node_modules\.bun\turbo@2.6.0\node_modules\turbo\node_modules  
C:\Users\PATH\TO\APP\node_modules\.bun\turbo@2.6.0\node_modules
C:\Users\PATH\TO\APP\node_modules\.bun\node_modules
C:\Users\PATH\TO\APP\node_modules
Searches all root files
C:\Users\REDACTED\.node_modules
C:\Users\REDACTED\.node_libraries
C:\Program Files\nodejs\lib\node

***

We did not find any binaries on this system.
This can happen if you run installation with the --no-optional flag.

***

If you believe this is an error, please include this message in your report.
error: script "dev" exited with code 1

And when I run scripts from the web dir:

$ vite dev --port=3001
node:internal/modules/package_json_reader:316
  throw new ERR_MODULE_NOT_FOUND(packageName, fileURLToPath(base), null);
        ^

Error [ERR_MODULE_NOT_FOUND]: Cannot find package 'fdir' imported from C:\Users\PATH\TO\APP\node_modules\.bun\tinyglobby@0.2.15\node_modules\tinyglobby\dist\index.mjs
    at Object.getPackageJSONURL (node:internal/modules/package_json_reader:316:9)
    at packageResolve (node:internal/modules/esm/resolve:768:81)
    at moduleResolve (node:internal/modules/esm/resolve:858:18)
    at defaultResolve (node:internal/modules/esm/resolve:990:11)
    at #cachedDefaultResolve (node:internal/modules/esm/loader:757:20)
    at ModuleLoader.resolve (node:internal/modules/esm/loader:734:38)
    at ModuleLoader.getModuleJobForImport (node:internal/modules/esm/loader:317:38)
    at #link (node:internal/modules/esm/module_job:208:49) {
  code: 'ERR_MODULE_NOT_FOUND'
}

Node.js v24.11.0
error: script "dev" exited with code 1

Do I need to install anything else? Why am I getting this error.
This might be something I've done wrong as it is my first better t stack app, however I personally feel like it should work out of the box

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions