https://github.blog/changelog/2026-07-08-npm-install-time-security-and-gat-bypass2fa-deprecation/

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

関連URL