npm config not working with flag -g

cli
triaged

(pierreneter) #1

What I Wanted to Do

Set global config with flag -g

What Happened Instead

https://docs.npmjs.com/cli/config#synopsis

npm config set key1 value1 -g # not working
npm config set key1 value1 --global # still working

Reproduction Steps

Details

Platform Info

$ npm --versions

{ npm: '6.4.1',
  ares: '1.14.0',
  cldr: '33.1',
  http_parser: '2.8.0',
  icu: '62.1',
  modules: '67',
  napi: '3',
  nghttp2: '1.34.0',
  node: '11.1.0',
  openssl: '1.1.0i',
  tz: '2018e',
  unicode: '11.0',
  uv: '1.23.2',
  v8: '7.0.276.32-node.7',
  zlib: '1.2.11' }

$ node -p process.platform
darwin