npm / npm/cli

[BUG] Indefinite hang when installing - `Tried to end timer that doesn't exist: idealTree:#root`

Open
#4,631 5 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Bug Priority 2 Release 8.x ws:arborist
Dominant language
JavaScript
Stars
10.1k
Forks
4.7k
Avg merge
2d 2h
Merged PRs (30d)
19

Description

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
C:\Users\User\Desktop\foo>npx brianjenkins94/prev
Need to install the following packages:
  github:brianjenkins94/prev
Ok to proceed? (y) y
[#########.........] / idealTree:59469f58d9fd3e53: timing idealTree:#root Completed in 2416ms

Log files produced (infinite repeating output):

2022-03-29T16_49_49_474Z-debug-0.log
2022-03-29T16_49_49_749Z-debug-0.log

Expected Behavior

Package installs and runs.

Steps To Reproduce
  1. npx brianjenkins94/prev
  2. Indefinite hang.
Environment
  • npm: v8.5.5
  • Node.js: v.17.6.0
  • OS Name: Windows 10 version 21H2
  • npm config:
; "builtin" config from C:\Program Files\nodejs\node_modules\npm\npmrc

prefix = "C:\\Users\\User\\AppData\\Roaming\\npm"

; node bin location = C:\Program Files\nodejs\node.exe
; cwd = C:\Users\User
; HOME = C:\Users\User
; Run `npm config ls -l` to show all defaults.

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by reproducing npx brianjenkins94/prev with npm 8.5.5, Node.js 17.6.0, and Windows 10. Inspect the two attached debug logs around the repeated idealTree:#root timer output. Done means the package installs and runs without an indefinite hang.

Written by the indexing model from the issue text.

Assessment

Tech stack
javascript, nodejs
Domain
cli, tooling
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
30/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.