最新消息:雨落星辰是一个专注网站SEO优化、网站SEO诊断、搜索引擎研究、网络营销推广、网站策划运营及站长类的自媒体原创博客

nextjs14 - How do I prevent automatic creation of Yarn's package-lock.json file? - Stack Overflow

programmeradmin0浏览0评论

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

发布评论

评论列表(0)

  1. 暂无评论