Skip to content

[BUG] npm spinner during npm config edit causes editing issues #9142

@davmillar

Description

@davmillar

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

I am using nvm v11.12.0 with nodejs 24 on Fedora Linux.

When I run npm config edit to attempt to edit my config, npm displays a spinner and it appears above vim when attempting to edit the config:

Image

When scrolling down through the config file, the spinner leaves a path of destruction in its wake by erasing lines and leaving spinner frames along the left-hand edge of the editor:

Image

Expected Behavior

There should not be a spinner present when the editor opens for configuration changes.

Steps To Reproduce

  1. On Fedora Linux using npm v11.12.0 running under NodeJS with nvm...
  2. With system editor configured as vim
  3. Run npm config edit
  4. See error...

Environment

  • npm: v11.12.0
  • Node.js: v24.14.0 (also occurs under Node.js v22.22.1)
  • OS Name: Linux
  • System Model Name: Fedora
  • npm config:
; "env" config from environment

python = "/usr/bin/python3"

; node bin location = /home/dmillar/.nvm/versions/node/v22.22.1/bin/node
; node version = v22.22.1
; npm local prefix = /home/dmillar
; npm version = 10.9.4
; cwd = /home/dmillar
; HOME = /home/dmillar
; Run `npm config ls -l` to show all defaults.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Bugthing that needs fixingNeeds Triageneeds review for next steps

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions