admin管理员组

文章数量:1305107

I'm working on a Next.js project and upgraded from Yarn to Yarn Berry. However, there's an ongoing issue where <package-lock.json> keeps automatically generating in my project root. Moreover, my package.json file keeps including project as a dependency. Even when I delete this line, it keeps regenerating along with the <package-lock.json> file. Please help me resolve this persistent issue.

I've tried deleting both yarn and yarn cache, and even modified the global yarn packages. However, the issue persists... I've also added package-lock.json to the gitignore file, but that didn't solve the problem either.

.png

.png

.png

本文标签: nextjs14How do I prevent automatic creation of Yarn39s packagelockjson fileStack Overflow