Skip to content

"ncu -g" returns error "Expected JSON from "npm ls --json --global". Received empty response." #1473

Description

@manuelgarciacr
  • I have searched for similar issues
  • Node version: v18.20.4
  • ncu version latest

Hardware information:

  • Model: Dell Inc. Latitude E6540
  • Memory: 16,0 GiB
  • Processor: Intel® Core™ i7-4810MQ × 8
  • Grphics: Intel® HD Graphics 4600 (HSW GT2)
  • Graphics 1: OLAND
  • Disc: 960,2 GB

Software information:

  • Firmware version: A27
  • SO name: Ubuntu 24.04.1 LTS
  • SO Construction: (null)
  • SO type: 64 bits
  • GNOME version: 46
  • Windows system: X11
  • Kernel version: Linux 6.8.0-47-generic

Current Behavior

$ ncu --verbose -g
Initializing

Options:
{
  args: [],
  cacheExpiration: 10,
  cacheFile: '~/.ncu-cache.json',
  cli: true,
  concurrency: 8,
  deep: false,
  dep: [ 'prod', 'dev', 'optional', 'packageManager' ],
  deprecated: true,
  errorLevel: 1,
  format: [],
  global: true,
  install: 'prompt',
  json: false,
  loglevel: 'verbose',
  minimal: false,
  packageManager: 'npm',
  registryType: 'npm',
  retry: 3,
  root: true,
  target: 'latest',
  verbose: true,
  workspace: []
}

Getting installed packages
Expected JSON from "npm ls --json --global". Received empty response.

Expected Behavior

Check the latest versions of all global project dependencies:

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions