docker-node-version-compat-modules

Community

Fix Node.js Docker module compatibility

AuthorDisentinel
Version1.0.0
Installs0

System Documentation

What problem does it solve?

This Skill resolves issues where Node.js CLI tools fail inside Docker containers due to version mismatches between host-installed node_modules and the container's Node.js environment.

Core Features & Use Cases

  • Cross-Version Compatibility: Ensures Node.js modules installed on a newer host version work correctly in older container versions.
  • Symlink Resolution: Fixes broken symlinks caused by file: protocol installs or pnpm workspaces within Docker.
  • Use Case: You're running a Docker container with Node 18, but your project's node_modules (mounted from your host with Node 20+) contain packages like string-width@8.x that require Node 20+, causing SyntaxError: Invalid regular expression flags. This Skill provides solutions to make it work.

Quick Start

Use the docker-node-version-compat-modules skill to fix Node.js module compatibility issues when mounting node_modules into a Docker container.

Dependency Matrix

Required Modules

None required

Components

references

💻 Claude Code Installation

Recommended: Let Claude install automatically. Simply copy and paste the text below to Claude Code.

Please help me install this Skill:
Name: docker-node-version-compat-modules
Download link: https://github.com/Disentinel/grafema/archive/main.zip#docker-node-version-compat-modules

Please download this .zip file, extract it, and install it in the .claude/skills/ directory.
View Source Repository

Agent Skills Search Helper

Install a tiny helper to your Agent, search and equip skill from 223,000+ vetted skills library on demand.