php// outputs the username that owns the running php/httpd process// (on a system with the "whoami" executable
>>>c=C()>>>c.method.whoami='mynameismethod'#can'tsetonthemethodTraceback(mostrecentcalllast):File"<stdin
此检查是针对您配置的任何注册表进行的(您可以通过运行查看这是什么npmconfiggetregistry),如果您使用的是不支持/whoami主注册表支持的端点的私有注册表,则此检查可能会失败。