cnpm/cnpmjs.org

npm whoami got 401 Unauthorized response!

amazingdudu opened this issue · 0 comments

When I execute npm whoami, I got 401 Unauthorized response. I'm sure I've logged in.

image

By debugging code, I found some problems in the 'proxy_to_npm' middleware, the URL is redirected, As a result, the 'whoami' route is not executed, so 401 Unauthorized response was return.

image