pnpm dev fails. Missing dev dependency: concurrently #929

Closed
opened 2026-03-13 08:10:17 -05:00 by GiteaMirror · 6 comments
Owner

Originally created by @benhovinga on GitHub (Mar 27, 2025).

When running pnpm dev from the root folder I get the following error.

better-auth:dev: > better-auth@1.2.6-beta.1 dev /Users/benhovinga/Programming/better-auth/packages/better-auth
better-auth:dev: > concurrently "unbuild --watch" "npm run dev:types"
better-auth:dev: 
better-auth:dev: sh: concurrently: command not found
better-auth:dev:  ELIFECYCLE  Command failed.
better-auth:dev: ERROR: command finished with error: command (/Users/benhovinga/Programming/better-auth/packages/better-auth) /opt/homebrew/bin/pnpm run dev exited (1)
better-auth#dev: command (/Users/benhovinga/Programming/better-auth/packages/better-auth) /opt/homebrew/bin/pnpm run dev exited (1)

This is caused by because concurrently is missing as a dev dependency. I assume that previous developers have concurrently installed in their global scope. Concurrently recommends adding it to devDependencies.

It's recommended to add concurrently to devDependencies as it's usually used for developing purposes. - concurrently

Originally created by @benhovinga on GitHub (Mar 27, 2025). When running `pnpm dev` from the root folder I get the following error. ``` better-auth:dev: > better-auth@1.2.6-beta.1 dev /Users/benhovinga/Programming/better-auth/packages/better-auth better-auth:dev: > concurrently "unbuild --watch" "npm run dev:types" better-auth:dev: better-auth:dev: sh: concurrently: command not found better-auth:dev:  ELIFECYCLE  Command failed. better-auth:dev: ERROR: command finished with error: command (/Users/benhovinga/Programming/better-auth/packages/better-auth) /opt/homebrew/bin/pnpm run dev exited (1) better-auth#dev: command (/Users/benhovinga/Programming/better-auth/packages/better-auth) /opt/homebrew/bin/pnpm run dev exited (1) ``` This is caused by because `concurrently` is missing as a dev dependency. I assume that previous developers have `concurrently` installed in their global scope. Concurrently recommends adding it to `devDependencies`. > It's recommended to add **concurrently** to `devDependencies` as it's usually used for developing purposes. - [concurrently](https://github.com/open-cli-tools/concurrently?tab=readme-ov-file#installation)
Author
Owner

@moshetanzer commented on GitHub (Mar 27, 2025):

Hey,

dev isn't meant to be run on root folder as far as I understand ❤️

@moshetanzer commented on GitHub (Mar 27, 2025): Hey, `dev` isn't meant to be run on root folder as far as I understand ❤️
Author
Owner

@benhovinga commented on GitHub (Mar 27, 2025):

@moshetanzer Ref the contribution guide: https://www.better-auth.com/docs/reference/contributing#2-start-development-server

@benhovinga commented on GitHub (Mar 27, 2025): @moshetanzer Ref the contribution guide: https://www.better-auth.com/docs/reference/contributing#2-start-development-server
Author
Owner

@moshetanzer commented on GitHub (Mar 27, 2025):

@Bekacru?

@moshetanzer commented on GitHub (Mar 27, 2025): @Bekacru?
Author
Owner

@benhovinga commented on GitHub (Mar 28, 2025):

I'll also add that running dev from inside packages/better-auth will produce the same error.

@benhovinga commented on GitHub (Mar 28, 2025): I'll also add that running dev from inside `packages/better-auth` will produce the same error.
Author
Owner

@benhovinga commented on GitHub (Mar 28, 2025):

It is used here
26a045e250/packages/better-auth/package.json (L13)

My PR #2025 added concurrently to devDependencies in this package.json.

@benhovinga commented on GitHub (Mar 28, 2025): It is used here https://github.com/better-auth/better-auth/blob/26a045e250ccf07a279b1d8e9bce3cc6048a3741/packages/better-auth/package.json#L13 My PR #2025 added concurrently to devDependencies in this package.json.
Author
Owner

@benhovinga commented on GitHub (Mar 28, 2025):

Appears to have been fixed with f6cad2b6db

@benhovinga commented on GitHub (Mar 28, 2025): Appears to have been fixed with f6cad2b6dbf137fa5fa6cb887780adebcb5be5a0
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: github-starred/better-auth#929