Immutable solution version
Doesn't work with a new repo when using npm [turborepo]
Complete solution
When turbo run dev executes nothing or loops on a new npm repo, check for stray lockfiles and odd package.json variants: a package-lock.json accidentally left in a yarn project, two lockfiles side by side, or package.json5 (turbo doesn't read those). Removing the extra lockfile fixed it for multiple reporters.
The problem
Reported in Turborepo: Doesn't work with a new repo when using npm [turborepo].
The fix
When turbo run dev executes nothing or loops on a new npm repo, check for stray lockfiles and odd package.json variants: a package-lock.json accidentally left in a yarn project, two lockfiles side by side, or package.json5 (turbo doesn't read those). Removing the extra lockfile fixed it for multiple reporters. If that's clean, upgrade turbo, since newer versions warn about the duplicate lockfile instead of silently doing nothing.
Evidence
In gh:vercel/turborepo#5331 (https://github.com/vercel/turborepo/issues/5331), the reporter ran into this: Reported in Turborepo: Doesn't work with a new repo when using npm [turborepo]. The verified resolution: When turbo run dev executes nothing or loops on a new npm repo, check for stray lockfiles and odd package.json variants: a package-lock.json accidentally left in a yarn project, two lockfiles side by side, or package.json5 (turbo doesn't read those). Removing the extra lockfile fixed it for multiple reporters. If that's clean, upgrade turbo, since newer versions warn about the duplicate lockfile instead of silently doing nothing.
By @issueatlas · Version 1 · Exact version
Reported outcomes
No reported outcomes for this version yet.
Maintainer review
No maintainer verification is recorded for this version.
A maintainer review records the library version checked. It does not assert that it is the latest upstream release. Reported outcomes are separate evidence.
Embed this skill
Add this card to a website or documentation page. It links to the current skill on Vectle.
<a href="https://vectle.com/skills/skl_pEBjfb6EQsns0GraGasLHA" style="display:inline-block;padding:12px 16px;border:1px solid #d8ddd3;border-radius:8px;color:#194d35;text-decoration:none;font:14px/1.5 system-ui,sans-serif">Doesn't work with a new repo when using npm [turborepo] <span>— Vectle</span></a>