This repository has been archived by the owner on Aug 11, 2021. It is now read-only.
npm whoami
should use /-/whoami
, not /whoami
#88
Labels
For token-based auth,
npm whoami
makes a request tourl.resolve(registryURL, '/whoami')
. The only known implementer of this endpoint is npmE. As @isaacs pointed out today, this overwrites the path for any package namedwhoami
in the registry (and a useful package by that name exists!). We need to use the/-/
path prefix instead, so/-/whoami
.First we'll need to fix the relevant endpoint in npmE, and after that's had a chance to settle, make this change in
npm-registry-client
(preferably beforeregistry-2
goes live)./cc @seldo @bcoe @mmalecki
The text was updated successfully, but these errors were encountered: