DevelopersTV

How to Block npm Inside Codex

John Lindquist — May 13, 2026 — tutorial

Why watch

This tutorial demonstrates how to configure Codex to block npm within a specific project without affecting the global shell environment. Viewers will learn to set up a repo-local .codex config file, create a PATH shim to intercept npm commands, and define exec policy rules. Ideal for developers using Codex who need to enforce package manager restrictions or create isolated development environments.