npm install-time security and GAT bypass2fa deprecation - GitHub Changelog
npm v12リリース。
allowScriptsがデフォルトで無効化され、--allow-git/--allow-remoteはデフォルトでnoneになる。
2FAを回避するGranular Access Tokenは、2026年8月からアカウントやパッケージ管理操作で2FAを省略できなくなる。
2027年1月ごろから直接publishもできなくなり、Trusted PublishingやStaged Publishingのどちらかでないと公開できなくする予定