github avatar

Sandbox Npm Install

If you're running npm installs inside a Docker sandbox with virtiofs mounts, you've probably hit those fun SIGILL crashes from native binaries like esbuild or rollup. This skill bundles a script that installs packages on the container's local ext4 filesystem and symlinks node_modules back into your workspace, sidestepping the mmap alignment issues that plague aarch64. You'll need to rerun it whenever package.json changes, and the symlink will look broken on your host, but that's fine since node_modules is gitignored anyway. It's a specific fix for a specific problem, and if you've been debugging segfaults in your build tools, you already know whether you need this.

skills.sh installs
1.7K
GitHub stars
41K
last updated
Aug 21, 2026

Install

$ npx -y skills add github/awesome-copilot --skill sandbox-npm-install --agent claude-code

Installs into .claude/skills of the current project.

Files

Sandbox npm Install

When to Use This Skill

Use this skill whenever:

  • You need to install npm packages for the first time in a new sandbox session
  • package.json or package-lock.json has changed and you need to reinstall
  • You encounter native binary crashes with errors like SIGILL, SIGSEGV, mmap, or unaligned sysNoHugePageOS
  • The node_modules directory is missing or corrupted

Prerequisites

  • A Docker sandbox environment with a virtiofs-mounted workspace
  • Node.js and npm available in the container
  • A package.json file in the target workspace

Background

Docker sandbox workspaces are typically mounted via virtiofs (file sync between the host and Linux VM). Native Go and Rust binaries (esbuild, lightningcss, rollup, etc.) crash with mmap alignment failures when executed from virtiofs on aarch64. The fix is to install on the container's local ext4 filesystem and symlink back into the workspace.

Step-by-Step Installation

Run the bundled install script from the workspace root:

bash scripts/install.sh

Common Options

Sponsors

Details

Repository
github.com/github/awesome-copilot
Categories
DevOps & CI/CD, Git & Pull Requests, AI & Agent Building, Debugging
First seen
Apr 16, 2026

More from github/awesome-copilot

All 318
1lukasniessen avatarkubernetes-skilllukasniessen/kubernetes-skillPrevent Kubernetes hallucinations by diagnosing and fixing failure modes: insecure workload defaults, resource starvation, network exposure, privilege sprawl, f1.5Kskills.sh installs
2mindrally avatarkubernetesmindrally/skillsExpert in Kubernetes and DevOps with infrastructure-as-code and cloud-native patterns1.1Kskills.sh installs
3orchestra-research avatarlangsmith-observabilityorchestra-research/ai-research-skillsLLM observability platform for tracing, evaluation, and monitoring. Use when debugging LLM applications, evaluating model outputs against datasets, monitoring p1Kskills.sh installs
4orchestra-research avatarphoenix-observabilityorchestra-research/ai-research-skillsOpen-source AI observability platform for LLM tracing, evaluation, and monitoring. Use when debugging LLM applications with detailed traces, running evaluations1Kskills.sh installs
5getsentry avatarsentry-setup-ai-monitoringgetsentry/sentry-agent-skillsSetup Sentry AI Agent Monitoring in any project. Use when asked to monitor LLM calls, track AI agents, or instrument OpenAI/Anthropic/Vercel AI/LangChain/Google900skills.sh installs
6AgriciDaniel avatarads-monitorAgriciDaniel/claude-adsMonitor paid-ad account pacing, delivery, performance, creative fatigue, tracking, policy, and data quality across supported platforms. Use for daily or weekly 760skills.sh installs