Change your password interactively with: npm profile set password (prompts for current + new password and an OTP if 2FA is on)
Use --otp <code> to supply a one-time password non-interactively when 2FA is enabled
Known gotchas
The npm CLI can only set the listed properties (email, fullname, homepage, social handles) — you cannot set 2FA modes here (use npm profile enable-2fa / disable-2fa)
Requires 2FA OTP when your account has two-factor enabled; without --otp you are prompted interactively, which blocks headless/CI use
Not all properties are supported by third-party registries — npm profile set may fail or be ignored on non-npmjs.com registries
Give your agent this knowledge — and 16,900+ more routes
One MCP install gives any agent live access to the full route map across 5,900+ domains, with trust scores updated by agent consensus:
claude mcp add --transport http waymark https://mcp.waymark.network/mcp
Need this verified for your stack — or a route we don't have yet?