Unhandled rejection Error: Invalid tag name "depth=0"

(olivier de Ipanema Moreira) #1

What I Wanted to Do

I was running the following cmd:
C:\Windows\System32>npm list -g depth=0

What Happened Instead

An error message that required me to report the issue to npm.community

Reproduction Steps

Just the cmd above
But i think it will be hard to reproduce since it came after i tried installed
'npm install --global --production windows-build-tools ` which installed a python 2.7 version instead of my usual 3.7.2 and made it my default version…
So i npm uninstalled windows-build-tools

I will now simply uninstall and reinstall node…

Details

0 info it worked if it ends with ok
1 verbose cli [ ‘C:\nodejs\node.exe’,
1 verbose cli ‘C:\nodejs\node_modules\npm\bin\npm-cli.js’,
1 verbose cli ‘list’,
1 verbose cli ‘-g’,
1 verbose cli ‘depth=0’ ]
2 info using npm@6.4.1
3 info using node@v8.15.0
4 timing npm Completed in 1454ms
5 error cb() never called!
6 error This is an error with npm itself. Please report this error at:
7 error https://npm.community

Platform Info

$ npm --versions
{ npm: '6.4.1',
  ares: '1.10.1-DEV',
  cldr: '32.0',
  http_parser: '2.8.0
  icu: '60.1',
  modules: '57',
  napi: '3',
  nghttp2: '1.33.0',
  node: '8.15.0',
  openssl: '1.0.2q',
  tz: '2017c',
  unicode: '10.0',
  uv: '1.23.2',
  v8: '6.2.414.75',
  zlib: '1.2.11' }
$ node -p process.platform
<!-- paste output here -->
win32
0 Likes

(Lars Willighagen) #2

You need to use --depth=0 instead of depth=0 (note the two hyphens).

0 Likes

(olivier de Ipanema Moreira) #3

Lars … awfully sorry for that … I am getting tired on my computer trying to wrestle windows :blush:

1 Like