← Back to catalog
SettingPermissions↓ 1,247

Allow npm Commands

Permits the npm lint, test, build, and start scripts without manual approval.

Installation
npx claude-code-templates@latest --setting permissions/allow-npm-commands --yes

This setting allows the npm commands most used in development: lint, test, build, and start.

With them permitted, Claude runs those tasks without asking for confirmation every time.

It targets routine scripts only, keeping other commands behind approval.

When to use

  • On Node projects where you run lint, tests, and build often.
  • To reduce interruptions during the development cycle.
  • When you want to allow only known scripts, not all of npm.

How to use

Apply the setting and adjust the list to include your project’s npm scripts.