Skip to content
New issue

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

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

Already on GitHub? # to your account

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

Open
manuelgarciacr opened this issue Oct 30, 2024 · 1 comment

Comments

@manuelgarciacr
Copy link

  • 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:

@raineorshine
Copy link
Owner

I will need a list of your global dependencies to reproduce.

npm ls -g

# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants