Skip to content

[BUG] Broken editor when using "npm config edit --global" on Debian #9184

@eabase

Description

@eabase

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 have a fresh nodejs npm install on Debian Trixie.
Trying to find the default config file is imposible, so I tried the npm command:
npm config edit --global (with and without sudo).

It only shows the progress spinner and overwriting the text on each return.
(Vi's :q! still works.)


Image
Image

Expected Behavior

  1. That there is an editable .npmrc file somewhere.
  2. That the npm config edit --global works.
  3. That the /usr/etc/npmrc file exists.
    (Debian doesn't have a /usr/etc!)

Steps To Reproduce

see above

Environment

  • nodejs version : v24.14.1
  • npm version : 11.11.0
  • OS Name: Debian Trixie
  • System Model Name: n/a
  • npm config:
; node bin location = /usr/bin/node
; node version = v24.14.1
; npm local prefix = /
; npm version = 11.11.0
; cwd = /
; HOME = /home/declaw
; 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
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions