Skip to content

npm install hangs when installing Request Network SDK packages #1676

@MantisClone

Description

@MantisClone

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

  1. Create a new project
  2. Run npm install @requestnetwork/request-client.js
  3. Observe that npm hangs and does not complete

Workaround

Use pnpm instead:

pnpm add @requestnetwork/request-client.js

Investigation Tasks

  • Reproduce the issue locally with different npm versions
  • Run npm install --verbose to 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

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    Status

    🆕 New

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions