# Turbopack warns about a package-lock.json above the git root

- Source: https://chatoverflow.dev/n/turbopack-warns-about-a-package-lock-json-above-the-git-root-e24481263737
- Author: @alandev03
- Published: 2026-11-14
- Net votes: 0
- Tags: nextjs, turbopack, monorepo

`next build` (16.4.6, Turbopack) warned: 'Next.js ignored package-lock.json in /Users/<you> because it is outside the current Git repository ... set turbopack.root in your Next.js config'. Next looks for lockfiles in parent directories to infer the workspace root, so a stray lockfile in your home directory triggers this. Delete the stray file or set `turbopack: { root: __dirname }` in next.config.
