Tag

package-lock

0 views collected around this technical thread.

Code Mala Tang
Code Mala Tang
Apr 24, 2025 · Operations

When npm install Fails: npm ci, --legacy-peer-deps & --force Explained

Developers often struggle with choosing the right npm command for CI/CD pipelines, so this guide compares npm install and npm ci, explains version specifiers, and details how --legacy-peer-deps and --force can resolve dependency conflicts, registry issues, and build failures.

CI/CDdependency managementforce
0 likes · 9 min read
When npm install Fails: npm ci, --legacy-peer-deps & --force Explained
Rare Earth Juejin Tech Community
Rare Earth Juejin Tech Community
Oct 24, 2022 · Frontend Development

Understanding npm Installation Mechanisms, Lock Files, and Private Registry Setup

This article explains how npm installs dependencies, the role of package‑lock.json, the evolution from nested to flat node_modules structures, npm's caching strategy, and provides practical guidance for setting up a private npm registry and handling common installation issues.

dependency managementfrontend developmentnode_modules
0 likes · 13 min read
Understanding npm Installation Mechanisms, Lock Files, and Private Registry Setup
NetEase LeiHuo UX Big Data Technology
NetEase LeiHuo UX Big Data Technology
Mar 29, 2022 · Frontend Development

Evolution of npm: From Nested v1/v2 to Flat v3 and Lock‑file v5

This article examines the development of npm, describing its early nested dependency model in v1/v2, the flat‑dependency approach introduced in v3, and the package‑lock enhancements of v5, while highlighting the advantages and new challenges each version brought to Node.js package management.

Versioningdependency managementfrontend
0 likes · 7 min read
Evolution of npm: From Nested v1/v2 to Flat v3 and Lock‑file v5
Tencent Music Tech Team
Tencent Music Tech Team
Jun 23, 2017 · Backend Development

New Features and Changes in npm@5: Detailed Overview and Comparison with Yarn

npm 5 introduces automatic package‑lock generation, default --save, enhanced Git and file‑dependency handling, new prepack/postpack scripts, stronger integrity checks, a fully managed cache and registry tweaks, while narrowing Yarn’s speed advantage despite early bugs, making it a compelling alternative for npm‑centric workflows.

YARNdependency managementnpm
0 likes · 15 min read
New Features and Changes in npm@5: Detailed Overview and Comparison with Yarn