npm team rm results in json error

What I Wanted to Do

remove a user from a team without an error

What Happened Instead

a user is removed but a json parse error means an npm error is returned

Reproduction Steps

-> npm team rm org-name:team-name user-name
npm ERR! Unexpected end of JSON input while parsing near ''

Running again now shows that the user is not a member of the team

-> npm team rm org-name:team-name user-name
npm ERR! code E404
npm ERR! 404 Not Found - DELETE https://registry.npmjs.org/-/team/org-name/team-name/user - user-name is not a team member

Platform Info

$ npm --versions
{ npm: '6.9.0',
  ares: '1.15.0',
  brotli: '1.0.7',
  cldr: '34.0',
  http_parser: '2.8.0',
  icu: '63.1',
  llhttp: '1.0.1',
  modules: '67',
  napi: '4',
  nghttp2: '1.34.0',
  node: '11.9.0',
  openssl: '1.1.1a',
  tz: '2018e',
  unicode: '11.0',
  uv: '1.25.0',
  v8: '7.0.276.38-node.16',
  zlib: '1.2.11' }
$ node -p process.platform
darwin

This topic was automatically closed 90 days after the last reply. New replies are no longer allowed.