Skip to content

Node.js and NPM network dramatically slow #7254

@ekalkutin

Description

@ekalkutin

Windows Build Number

Windows 11 Pro 21H2 Build: 22000.100

WSL Version

  • WSL 2
  • WSL 1

Kernel Version

Kernel version: 5.10.43

Distro Version

Ubuntu 20.04

Other Software

I have Ubuntu, Docker (v20.10.7), WSL 2 installed in my system.
I am using nvm with node.js (tried different versions still the same results)

Repro Steps

Cloned my fresh repo.
npm install - might pass and actually install.
Whenever I want to install an additional package - it might take forever to install.

Expected Behavior

Should run smoothly, without a long time-consuming.

Actual Behavior

I have dramatically slow network speed while working with Node.js and NPM.

  • Request made from Node.js app - randomly are slow, unstable, timeouts
  • npm install might take forever

I have to cancel and run npm install again, and if I am lucky - all packages will be installed, otherwise, I have to cancel and run again.
I am unsure why cache revalidation takes so much time
image

Diagnostic Logs

I ran npm install --verbose
Here 24 mins duration highlighted, so I just canceled.
image

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions