Problem
E2B sandboxes cannot install private npm packages because npm authentication tokens are not configured.
Use Case
- Teams with private npm packages
- Projects using private npm registries
- Enterprise npm instances
Proposed Solution
CLI Flag
parallel-cc sandbox-run --repo . --prompt "Task" \
--npm-token "npm_xxx"
Environment Variable
export PARALLEL_CC_NPM_TOKEN="npm_xxx"
Implementation
- Accept npm token via CLI or environment
- Create
~/.npmrc in sandbox with token
- Support custom registry URLs
- Handle scoped packages (@org/package)
Configuration
# Custom registry support
parallel-cc sandbox-run --repo . --prompt "Task" \
--npm-token "xxx" \
--npm-registry "https://npm.company.com"
Files to Modify
src/cli.ts - Add npm flags
src/e2b/sandbox-manager.ts - Inject npm config
src/e2b/file-sync.ts - Handle .npmrc correctly
Acceptance Criteria
Dependencies
Problem
E2B sandboxes cannot install private npm packages because npm authentication tokens are not configured.
Use Case
Proposed Solution
CLI Flag
Environment Variable
Implementation
~/.npmrcin sandbox with tokenConfiguration
Files to Modify
src/cli.ts- Add npm flagssrc/e2b/sandbox-manager.ts- Inject npm configsrc/e2b/file-sync.ts- Handle .npmrc correctlyAcceptance Criteria
Dependencies