npm Community Forum (Archive)

The npm community forum has been discontinued.

To discuss usage of npm, visit the GitHub Support Community.

npm owner add failed with 404, Invite the maintainer to fail.

What I Wanted to Do

I want to invite defenders.

What Happened Instead

Unable to invite defenders. Invite the maintainer to fail.

Reproduction Steps

npm owner add langshu ssr


0 info it worked if it ends with ok
1 verbose cli [ '/usr/local/bin/node',
1 verbose cli   '/usr/local/bin/npm',
1 verbose cli   'owner',
1 verbose cli   'add',
1 verbose cli   'langshu',
1 verbose cli   'ssr' ]
2 info using npm@6.9.0
3 info using node@v11.14.0
4 verbose npm-session a729852f0df8b59f
5 verbose owner add langshu to ssr
6 http fetch GET 200 1597ms
7 http fetch GET 304 395ms (from cache)
8 silly pacote registry packument for ssr@latest fetched in 401ms
9 http fetch PUT 404 661ms
10 verbose stack Error: 404 Not Found - PUT - Team not found
10 verbose stack     at res.buffer.catch.then.body (/usr/local/lib/node_modules/npm/node_modules/npm-registry-fetch/check-response.js:104:15)
10 verbose stack     at processTicksAndRejections (internal/process/task_queues.js:86:5)
11 verbose statusCode 404
12 verbose pkgid ssr@latest
13 verbose cwd /Users/kenny/git/github/ssr
14 verbose Darwin 18.6.0
15 verbose argv "/usr/local/bin/node" "/usr/local/bin/npm" "owner" "add" "langshu" "ssr"
16 verbose node v11.14.0
17 verbose npm  v6.9.0
18 error code E404
19 error 404 Not Found - PUT - Team not found
20 error 404
21 error 404 'ssr@latest' is not in the npm registry.
22 error 404 You should bug the author to publish it (or use the name yourself!)
23 error 404 Note that you can also install from a
24 error 404 tarball, folder, http url, or git url.
25 verbose exit [ 1, true ]

Platform Info

$ npm --versions
{ ssr: '2.1.2',
  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.1.1',
  modules: '67',
  napi: '4',
  nghttp2: '1.37.0',
  node: '11.14.0',
  openssl: '1.1.1b',
  tz: '2018e',
  unicode: '11.0',
  uv: '1.27.0',
  v8: '',
  zlib: '1.2.11' }

$ node -p process.platform
// darwin

Is ssr owned by a person, or by an Org? (I ask because you are seeing “Team not found” errors.)

This is my personal.

I have a personal package that I can Invite maintainer. tsbb

test case

when exist user or org, will happen.
it can’t add any maintainer in r0 package!

when user or org name = package name , “Team not found” errors.

i think it’s a bug, need help

This forum is community based help mostly from other users. I suggest you try an npm support channel with what you are trying to do and what goes wrong:

I have submitted.