Tag

npm

0 views collected around this technical thread.

Code Mala Tang
Code Mala Tang
Jun 2, 2025 · Backend Development

Why Node.js 24 Is a Game-Changer for Backend Development

Node.js 24 introduces native fetch support, a faster V8 engine, enhanced module interoperability, full Web Streams API, and numerous ecosystem upgrades, making it a compelling upgrade for developers seeking modern, high‑performance server‑side JavaScript.

Backend DevelopmentJavaScriptNode.js
0 likes · 7 min read
Why Node.js 24 Is a Game-Changer for Backend Development
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
Apr 18, 2025 · Frontend Development

Resolving node‑sass Compatibility Issues in Frontend Projects

This guide explains why node‑sass often fails due to mismatched Node.js versions, shows how to check project dependencies, provides version‑mapping tables, and offers three practical solutions—including switching Node versions with nvm, adjusting dependency versions, or replacing node‑sass with sass—to get the project building and running reliably.

NVMfrontendnode version
0 likes · 16 min read
Resolving node‑sass Compatibility Issues in Frontend Projects
Rare Earth Juejin Tech Community
Rare Earth Juejin Tech Community
Feb 21, 2025 · Frontend Development

Understanding pnpm: Solving Dependency Management Issues in Modern Frontend Development

This article explains the evolution of JavaScript package managers, the shortcomings of npm and Yarn such as duplicated installations, phantom dependencies and unpredictable dependency trees, and demonstrates how pnpm’s content‑addressable store, hard‑link and symlink strategy provides faster installs, reduced disk usage, and more reliable dependency isolation for frontend projects.

YARNdependency managementfrontend development
0 likes · 22 min read
Understanding pnpm: Solving Dependency Management Issues in Modern Frontend Development
Rare Earth Juejin Tech Community
Rare Earth Juejin Tech Community
Jan 14, 2025 · Backend Development

Understanding npm, Yarn, and pnpm: Dependency Management, Flat Dependencies, and pnpm's Store Mechanism

This article examines the evolution of JavaScript package managers—from npm's nested node_modules structure to Yarn's flat dependencies and finally pnpm's global store with hard‑ and soft‑link mechanisms—highlighting how each approach addresses path length, disk‑space waste, installation speed, and ghost‑dependency issues.

Node.jsYARNdependency management
0 likes · 8 min read
Understanding npm, Yarn, and pnpm: Dependency Management, Flat Dependencies, and pnpm's Store Mechanism
Code Mala Tang
Code Mala Tang
Dec 19, 2024 · Information Security

How a Supply‑Chain Attack Compromised Vant and Rspack – Frontend Security Lessons

A recent supply‑chain poisoning incident injected malicious post‑install scripts into the popular Vant component library and Rspack build tool, stealing cloud credentials and mining Monero, prompting developers to upgrade to safe versions and reconsider npm dependency risks.

RspackSupply chain attackVant
0 likes · 5 min read
How a Supply‑Chain Attack Compromised Vant and Rspack – Frontend Security Lessons
Code Mala Tang
Code Mala Tang
Dec 7, 2024 · Backend Development

Can vlt and vsr Solve npm’s Biggest Security and Dependency Headaches?

While npm has powered JavaScript’s growth, its ecosystem suffers from manifest inconsistencies, security vulnerabilities, bloated dependencies, versioning ambiguities, and supply‑chain attacks; the newly announced vlt package manager and vsr serverless registry aim to address these flaws with faster installs, smart queries, visual tools, and fine‑grained access control.

Node.jsSecuritydependency management
0 likes · 11 min read
Can vlt and vsr Solve npm’s Biggest Security and Dependency Headaches?
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
Code Mala Tang
Code Mala Tang
Sep 2, 2024 · Backend Development

How to Publish a Fully Production‑Ready npm Package from Scratch

This step‑by‑step guide shows how to initialize a Git repository, configure TypeScript, Prettier, Vitest, CI with GitHub Actions, set up package metadata, use Changesets for versioning, and finally build and publish a production‑ready npm package.

GitHub ActionsTypeScriptci
0 likes · 19 min read
How to Publish a Fully Production‑Ready npm Package from Scratch
Code Mala Tang
Code Mala Tang
Aug 29, 2024 · Backend Development

How to Publish a Fully Production‑Ready TypeScript Package to npm

This step‑by‑step guide shows how to create, configure, test, and publish a TypeScript npm package using Git, Prettier, tsup, Vitest, GitHub Actions CI, and Changesets for versioning and release automation.

GitHub ActionsTypeScriptci
0 likes · 25 min read
How to Publish a Fully Production‑Ready TypeScript Package to npm
Rare Earth Juejin Tech Community
Rare Earth Juejin Tech Community
Jul 30, 2024 · Frontend Development

Varlet Icon Builder: Fast Creation of Enterprise Icon Libraries with Vue and React Support

This article introduces the Varlet icon builder toolchain, which enables rapid creation of enterprise or open‑source icon libraries, supporting SVG to Vue 3, React, ESM/CJS modules, web fonts, automatic component import, Figma integration, and provides CLI commands for development, building, and publishing.

CLIReactVue3
0 likes · 7 min read
Varlet Icon Builder: Fast Creation of Enterprise Icon Libraries with Vue and React Support
Tencent Cloud Developer
Tencent Cloud Developer
Jul 3, 2024 · Frontend Development

Improving Front-End Development Efficiency with Monorepo, Automated Publishing, and Build Optimization

By consolidating seven repositories into a pnpm‑powered monorepo and automating releases with Nx, changesets, and OCI, Tencent’s Basic Development Center cut CI time over 80%, shrank bundle sizes, accelerated builds from seven to two minutes, and eliminated fragile manual publishing steps.

Build OptimizationCI/CDMonorepo
0 likes · 36 min read
Improving Front-End Development Efficiency with Monorepo, Automated Publishing, and Build Optimization
Architect
Architect
Jun 29, 2024 · Frontend Development

One‑Click Frontend Deployment with Jenkins: From GitLab to Server

This article explains how to use Jenkins to automatically pull a front‑end Angular project from a GitLab repository, install the required Node.js and npm versions, build the static files, compress them, and deploy the resulting package to a Linux server with backup and verification steps.

AutomationCI/CDFrontend Deployment
0 likes · 10 min read
One‑Click Frontend Deployment with Jenkins: From GitLab to Server
Rare Earth Juejin Tech Community
Rare Earth Juejin Tech Community
Jun 3, 2024 · Backend Development

Writing, Running, and Debugging Node.js Scripts for Automated Component Export

This guide explains how to create a Node.js script that automatically generates export statements for component libraries, covering script basics, file operations with fs‑extra, package imports, npm integration, and debugging techniques using VS Code.

AutomationNode.jsdebugging
0 likes · 10 min read
Writing, Running, and Debugging Node.js Scripts for Automated Component Export
Rare Earth Juejin Tech Community
Rare Earth Juejin Tech Community
May 22, 2024 · Frontend Development

Creating a Minimalist Pure JavaScript Toast Notification Library (autolog.js)

This article introduces autolog.js, a tiny pure‑JavaScript toast plugin that provides lightweight, customizable notifications without external UI libraries, explains its implementation details, shows the full source code, and demonstrates simple installation and usage via npm.

JavaScriptToastUI
0 likes · 17 min read
Creating a Minimalist Pure JavaScript Toast Notification Library (autolog.js)
ByteFE
ByteFE
Apr 9, 2024 · Fundamentals

Understanding and Managing Dependencies in Node.js Projects

This article explores the hidden complexities of dependency management in modern Node.js development, covering the risks of unstable package structures, versioning pitfalls, various dependency types, ghost and circular dependencies, and provides practical strategies and best‑practice recommendations to keep dependency graphs stable, secure, and maintainable.

Node.jsdependency managementnpm
0 likes · 28 min read
Understanding and Managing Dependencies in Node.js Projects
Sohu Tech Products
Sohu Tech Products
Dec 20, 2023 · Information Security

Command Injection Vulnerabilities in Node.js: Analysis and Prevention

The article examines how command‑injection flaws in popular Node.js npm packages such as find‑exec and fs‑git arise from unsafe concatenation of user input into shell commands, and recommends rigorous validation, using execFile or spawn, and regular dependency audits to prevent catastrophic system compromise.

CVESecure CodingSecurity
0 likes · 11 min read
Command Injection Vulnerabilities in Node.js: Analysis and Prevention
Rare Earth Juejin Tech Community
Rare Earth Juejin Tech Community
Dec 5, 2023 · Frontend Development

Building a Customizable Image Generation Tool with Node‑Canvas and Full‑Stack Deployment

This article walks through the conception, implementation, and deployment of a highly configurable image‑generation CLI tool built with node‑canvas, covering the npm package design, command‑line usage, custom font handling, a React‑based visual website, backend services, CI/CD with GitHub Actions, and server setup.

DeploymentGitHub ActionsImage Generation
0 likes · 35 min read
Building a Customizable Image Generation Tool with Node‑Canvas and Full‑Stack Deployment
IT Services Circle
IT Services Circle
Dec 4, 2023 · Information Security

Supply‑Chain Vulnerabilities in the JavaScript/npm Ecosystem: Notable Cases and Lessons

This article surveys a series of high‑profile supply‑chain attacks on the JavaScript/npm ecosystem—such as left‑pad removal, malicious faker.js updates, cross‑env hijacking, is‑promise bugs, getcookies backdoors, event‑stream social‑engineering, ESLint credential leaks, manifest obfuscation, and politically‑motivated code injections—highlighting how tiny, widely‑used packages can become vectors for large‑scale compromise and what developers can do to mitigate the risk.

JavaScriptPackage ManagementSecurity
0 likes · 17 min read
Supply‑Chain Vulnerabilities in the JavaScript/npm Ecosystem: Notable Cases and Lessons
Rare Earth Juejin Tech Community
Rare Earth Juejin Tech Community
Nov 10, 2023 · Backend Development

Using tree-node-cli to Visualize and Manage Project File Structures

This article introduces the npm package tree-node-cli, explains how to install it globally, demonstrates its powerful visual tree output, customizable options, and how it can efficiently help developers understand and manage complex project file hierarchies.

command linefile-structurenodejs
0 likes · 10 min read
Using tree-node-cli to Visualize and Manage Project File Structures