Tagged articles
node_modules
11 articles · Page 1 of 1
The article explains why removing the massive node_modules folder can take a long time, then shows how to instantly delete it using the rimraf tool, compares rimraf with other deletion commands, and discusses its advantages for Node.js‑based frontend projects.
Node.jsfile deletionfrontend
0 likes · 6 min read


ByteFENov 14, 2022 · Frontend Development
This article examines the evolution of the three major JavaScript package managers—npm, Yarn, and pnpm—detailing their original designs, the problems they introduced such as nested node_modules, phantom dependencies and doppelgangers, and the innovative solutions like flattening, lock files, symbol/hard links, and PnP mode that each tool brought to improve dependency management.
YARNnode_modulesnpm
0 likes · 18 min read

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 ManagementPrivate Registrynode_modules
0 likes · 13 min read

The article explains, through a mock interview, why running npm run xxx triggers npm to look up the script in package.json, creates local binary links in node_modules/.bin, and executes the corresponding command such as vue‑cli‑service serve without requiring a global installation.
Frontend DevelopmentVue CLInode_modules
0 likes · 8 min read

This article analyses the evolution of front‑end package managers—from npm's early nested modules to Yarn's lockfile and Plug'n'Play, pnpm's hard‑link strategy, cnpm/tnpm adaptations, and Deno's URL‑based imports—highlighting their dependency resolution mechanisms, trade‑offs, and remaining challenges.
DenoDependency ManagementYARN
0 likes · 19 min read

This article examines how npm, Yarn, pnpm, cnpm, tnpm, and Deno handle dependency installation, version locking, and node_modules structures, highlighting the evolution from nested to flattened layouts, the emergence of phantom and multiple dependencies, and the trade‑offs of each approach.
DenoDependency ManagementYARN
0 likes · 21 min read

This article analyzes the slow build process of Dada's massive frontend platform, identifies bottlenecks in dependency installation and webpack compilation, and presents practical optimizations such as node_modules caching, cp command adjustments, Babel loader caching, and other webpack tweaks that reduced average build time from 600 seconds to around 100 seconds.
BabelBuild OptimizationCaching
0 likes · 8 min read

During npm install, VS Code’s file explorer sometimes flashes due to misconfigured file‑watcher exclusions for node_modules, a bug in RPC argument handling and cancellation token processing; this article explains the root causes, demonstrates the faulty configurations, and provides concrete fixes and contribution tips.
CancellationTokenRPCVS Code
0 likes · 10 min read


政采云技术Aug 23, 2020 · Frontend Development
This article explains the inner workings of npm installation, the differences between npm 2 and npm 3, the purpose and structure of package‑lock.json, and the various dependency types such as dependencies, devDependencies, optionalDependencies, peerDependencies, and bundledDependencies, providing practical guidance for developers.
Dependency Managementnode_modulesnpm
0 likes · 14 min read

The article explains that compiling experimental JavaScript features like JSX or class properties inside node_modules tightly couples libraries to build tools, leading to breaking changes, coordination overhead, and prolonged upgrade pain, which is why Create React App avoids such compilation.
BabelJavaScriptReact
0 likes · 4 min read

The article analyzes npm’s role in frontend package management, presenting active‑install statistics, identifying four key pain points for developers, evaluating Bower’s approach, and outlining npm’s future modular CLI plans, while concluding that a definitive solution has yet to emerge.
bowerbrowserifyfrontend
0 likes · 18 min read
