-
Notifications
You must be signed in to change notification settings - Fork 91
Open
Labels
Description
Problem
npm install hangs indefinitely when installing Request Network SDK packages (e.g., @requestnetwork/request-client.js). This prevents users from installing our SDK with npm, forcing them to use pnpm as a workaround.
Proposed Solution
Investigate the root cause and ensure our published packages are installable with npm, yarn, and pnpm.
Considerations
- The monorepo uses Yarn 1.22.22 for development, but published packages should work with any package manager
- Our packages require Node.js >= 22.0.0
- pnpm works fine, so the issue may be npm-specific behavior with our dependency tree or package metadata
- May be related to recent npm policy changes
Reports
- Rodrigo Pavezi (Dec 15, 2024) - had to switch to pnpm to continue work on payments-subgraph
- Aimen Sahnoun (Dec 19, 2024) - same issue when installing newly released packages into the API
Steps to Reproduce
- Create a new project
- Run
npm install @requestnetwork/request-client.js - Observe that npm hangs and does not complete
Workaround
Use pnpm instead:
pnpm add @requestnetwork/request-client.jsInvestigation Tasks
- Reproduce the issue locally with different npm versions
- Run
npm install --verboseto identify where the hang occurs - Check if specific packages or dependency combinations trigger the hang
- Investigate npm registry logs for any errors
- Check package metadata and tarball downloads
- Review recent package releases for any changes that might cause this
coderabbitai
Metadata
Metadata
Assignees
Labels
Type
Projects
Status
🆕 New