Loading...
Loading...
Install npm packages in a Docker sandbox environment. Use this skill whenever you need to install, reinstall, or update node_modules inside a container where the workspace is mounted via virtiofs. Native binaries (esbuild, lightningcss, rollup) crash on virtiofs, so packages must be installed on the local ext4 filesystem and symlinked back.
npx skill4agent add github/awesome-copilot sandbox-npm-installpackage.jsonpackage-lock.jsonSIGILLSIGSEGVmmapunaligned sysNoHugePageOSnode_modulespackage.jsonbash scripts/install.sh| Option | Description |
|---|---|
| Path to directory containing |
| Also install Playwright Chromium browser for E2E testing |
package.jsonpackage-lock.json.npmrcnpm cinpm installnode_modulessudonpm test # Run project tests
npm run build # Build the project
npm run dev # Start dev server/home/agent/project-depsnode_modulesnode_modulesnpm cinpm installpackage.jsonpackage-lock.jsonnpm cinpm install| Problem | Solution |
|---|---|
| Re-run the install script; ensure you're not running |
| Check that the symlink exists: |
| Permission errors during install | Ensure the local deps directory is writable by the current user |
| Verification fails intermittently | Run the script again — native binary crashes can be non-deterministic on first load |
server.fs.allow/home/agent/project-deps/