Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[BUG] NPM install is taking forever (~2 hours) to complete from AVD machines #8012

Open
2 tasks done
maykul opened this issue Jan 6, 2025 · 3 comments
Open
2 tasks done
Labels
Bug thing that needs fixing Needs Triage needs review for next steps

Comments

@maykul
Copy link

maykul commented Jan 6, 2025

Is there an existing issue for this?

  • I have searched the existing issues

This issue exists in the latest npm version

  • I am using the latest npm

Current Behavior

While executing npm install commands from AVD, commands are taking ~30 to 40 minutes to complete. Sometimes it is taking ~2 hours .

AVD is shared VM among 6 developers. From VM/AVD, the request is using a Blue Coat Proxy to access the internet, which then forwards the request to a firewall, both are located in On-premise infrastructure.

Outside of AVD, the command takes 50 seconds to completed.

Is there a way to identity which part from infrastructure is taking time while executing npm install commands.

2025-01-06T08_58_36_164Z-debug-0.log

Expected Behavior

npm install commands should take less than a minute to execute successfully from AVD machine.

Steps To Reproduce

  1. In this environment... Azure virtual desktop
  2. With this config...
  3. Run 'npm install'
  4. See error... Takes 30minutes to 2 hours.

Environment

  • npm: 10.9
  • Node.js: 23.2
  • OS Name: Windows 10
  • System Model Name: Windows 10
  • npm config:
; copy and paste output from `npm config ls` here

![NPM   Node Version](https://github.com/user-attachments/assets/5d3fee23-add4-4b12-b014-da2fde2cfb27)
![LAN Proxy Settings](https://github.com/user-attachments/assets/ebc2912c-3dd2-4037-843f-7bc26db134cc)
![fltmc](https://github.com/user-attachments/assets/a8b7ff8f-7ec6-492f-a761-41cf83dffbda)
![Machine Details](https://github.com/user-attachments/assets/6e4007ed-47c3-46e8-b404-34882bafa0b8)
![VM Details](https://github.com/user-attachments/assets/4eda62a3-969f-45e5-8af6-3c4a4df6029e)
@maykul maykul added Bug thing that needs fixing Needs Triage needs review for next steps labels Jan 6, 2025
@milaninfy
Copy link
Contributor

at the quick glance this appears to be network and proxy related based on http logs and time taken by network requests.

@maykul
Copy link
Author

maykul commented Jan 8, 2025

at the quick glance this appears to be network and proxy related based on http logs and time taken by network requests.

The Azure Virtual Machine is allocated to 10 users. Where there are less users using the VM, the command executes quicker (6 to 8 minutes). Are there any things to keep in mind while executing npm commands from AVD through remote access.

@Tofandel
Copy link

Tofandel commented Jan 8, 2025

You mention 10.9 but do not specify exact version. Npm 10.4 to 10.9.0 are known to have freezing issues due to DNS requests in node getReport which have been fixed in 10.9.1

Suspicion confirmed from the log file info using npm@10.9.0

You have checked that "You have checked existing issues" but it does not appear to be the case otherwise you would have found with your title
https://github.com/npm/cli/issues?q=is%3Aissue+NPM+install+is+taking+forever+is%3Aclosed
#4028

Make sure to use an up to date version of npm and see if the issue persists

sudo npm install -g npm

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Bug thing that needs fixing Needs Triage needs review for next steps
Projects
None yet
Development

No branches or pull requests

3 participants
  NODES
COMMUNITY 2
INTERN 1
Project 3
USERS 3