Tag

node_modules

0 views collected around this technical thread.

Rare Earth Juejin Tech Community
Rare Earth Juejin Tech Community
Oct 25, 2024 · Frontend Development

Why Deleting node_modules Is Slow and How to Delete It Instantly with rimraf

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
Why Deleting node_modules Is Slow and How to Delete It Instantly with rimraf
ByteFE
ByteFE
Nov 14, 2022 · Frontend Development

Evolution and Innovations of npm, Yarn, and pnpm Package Managers

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
Evolution and Innovations of npm, Yarn, and pnpm Package Managers
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.

Frontend Developmentdependency managementnode_modules
0 likes · 13 min read
Understanding npm Installation Mechanisms, Lock Files, and Private Registry Setup
php中文网 Courses
php中文网 Courses
Apr 15, 2022 · Frontend Development

How npm run Executes Scripts and Uses node_modules/.bin in Vue CLI Projects

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 DevelopmentScriptsVue CLI
0 likes · 8 min read
How npm run Executes Scripts and Uses node_modules/.bin in Vue CLI Projects
Dada Group Technology
Dada Group Technology
Jan 14, 2022 · Frontend Development

Optimizing Build and Dependency Installation for Dada's Large-Scale Frontend System

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.

BabelCachingWebpack
0 likes · 8 min read
Optimizing Build and Dependency Installation for Dada's Large-Scale Frontend System
政采云技术
政采云技术
Aug 23, 2020 · Frontend Development

Overlooked Details in npm Dependency Management

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.

JavaScriptdependency managementnode_modules
0 likes · 14 min read
Overlooked Details in npm Dependency Management
UC Tech Team
UC Tech Team
Oct 5, 2018 · Frontend Development

Why Create React App Should Not Compile Non‑Standard Syntax in node_modules

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.

BabelJavaScriptcreate-react-app
0 likes · 4 min read
Why Create React App Should Not Compile Non‑Standard Syntax in node_modules