
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-codeInstalls 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.jsonorpackage-lock.jsonhas changed and you need to reinstall- You encounter native binary crashes with errors like
SIGILL,SIGSEGV,mmap, orunaligned sysNoHugePageOS - The
node_modulesdirectory is missing or corrupted
Prerequisites
- A Docker sandbox environment with a virtiofs-mounted workspace
- Node.js and npm available in the container
- A
package.jsonfile 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- Semantic Kernel1.7K
- Gtm Technical Product Pricing1.7K
- Aws Cdk Python Setup1.7K
- Gtm Ai Gtm1.6K
- Dotnet Timezone1.6K
- Gtm Board And Investor Communication1.6K
- Quality Playbook1.6K
- Gtm Partnership Architecture1.6K
- Gtm Enterprise Account Planning1.6K
- Gtm Enterprise Onboarding1.6K
- Gtm Operating Cadence1.6K
- Gtm Developer Ecosystem1.5K
- Agent Owasp Compliance1.5K
- Ruff Recursive Fix1.5K
- Threat Model Analyst1.5K
- Azure Architecture Autopilot1.5K
- Email Drafter1.4K
- Daily Prep1.4K
- Geofeed Tuner1.3K
- Roundup1.3K
- Roundup Setup1.3K
- Freecad Scripts1.3K
- React19 Test Patterns1.3K
- Lsp Setup1.2K