What’s new in npm v7
Blog post from LogRocket
On October 13th, 2020, the npm CLI team released [email protected], introducing significant updates such as workspaces, automatic peer dependency installation, and a new package-lock format. Workspaces allow for better management of multiple packages within a single root package, while the new peer dependency algorithm ensures proper installation without manual management. The package-lock v2 format facilitates reproducible builds and offers compatibility with yarn.lock. Additionally, [email protected] brings some breaking changes, including a revamped npx command now integrated into npm, modifications to the npm audit output, and adjustments to npm's internal module requirements. These changes mark the first major release since npm's acquisition by GitHub, reflecting an ongoing effort to enhance the developer experience.