When I execute npm whoami, I got 401 Unauthorized response. I'm sure I've logged in.
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.