npm access 2fa-required for scoped packages returns 500 error

What I Wanted to Do

$ npm access 2fa-required @teppeis/multimaps --otp XXXXXX

What Happened Instead

npm ERR! code E500
npm ERR! 500 Internal Server Error - POST https://registry.npmjs.org/-/package/%40teppeis%2Fmultimaps/access

npm ERR! A complete log of this run can be found in:
 
npm ERR!     /Users/teppeis/.npm/_logs/2019-01-28T18_34_35_000Z-debug.log

Details

  • Succeed for non-scoped packages.
  • npm@6.5.0 hangs out instead output error.

debug.log

0 info it worked if it ends with ok
1 verbose cli [ '/Users/teppeis/.nodebrew/node/v10.15.0/bin/node',
1 verbose cli   '/Users/teppeis/.nodebrew/current/bin/npm',
1 verbose cli   'access',
1 verbose cli   '2fa-required',
1 verbose cli   '@teppeis/multimaps',
1 verbose cli   '--otp',
1 verbose cli   'XXXXXX' ]
2 info using npm@6.7.0
3 info using node@v10.15.0
4 verbose npm-session 880c185368d7c728
5 http fetch POST 500 https://registry.npmjs.org/-/package/%40teppeis%2Fmultimaps/access 684ms
6 verbose stack Error: 500 Internal Server Error - POST https://registry.npmjs.org/-/package/%40teppeis%2Fmultimaps/access
6 verbose stack     at res.buffer.catch.then.body (/Users/teppeis/.nodebrew/node/v10.15.0/lib/node_modules/npm/node_modules/npm-registry-fetch/check-response.js:104:15)
6 verbose stack     at process._tickCallback (internal/process/next_tick.js:68:7)
7 verbose statusCode 500
8 verbose pkgid @teppeis/multimaps@latest
9 verbose cwd /Users/teppeis/tmp/npm-test2
10 verbose Darwin 18.2.0
11 verbose argv "/Users/teppeis/.nodebrew/node/v10.15.0/bin/node" "/Users/teppeis/.nodebrew/current/bin/npm" "access" "2fa-required" "@teppeis/multimaps" "--otp" "579377"
12 verbose node v10.15.0
13 verbose npm  v6.7.0
14 error code E500
15 error 500 Internal Server Error - POST https://registry.npmjs.org/-/package/%40teppeis%2Fmultimaps/access
16 verbose exit [ 1, true ]

Platform Info

$ npm --versions
6.7.0
$ node -p process.platform
darwin

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