Recently when looking at some projects, I found many dependencies. After searching a few randomly, I discovered they weren’t being used and could be removed. However, checking and removing these packages one by one is too troublesome. Based on this need, I wrote a small tool to efficiently detect and remove unused dependencies.
Jan 26, 2025
In projects, we often use many third-party NPM packages, such as Mousetrap. We usually encounter bugs that have not yet been fixed or merged by the official repository. So, what should we do in such cases? Here is a summary of the methods.
Oct 24, 2024
Sometimes, switching the source of npm packages in a project is necessary due to network or security issues. The general practice is to switch the source in npmrc, but after switching and installing packages, you will find that the install still goes through the old source, primarily when a lock file has already been generated.
Sep 17, 2024
Explore the intricacies of npm publish, including how lock files are handled and the impact on package distribution. Learn about package-lock.json, resolutions, and debugging techniques.
Sep 24, 2022