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.js
Investigation Tasks