{"version":"2.1.328","anchor":"npm-installs-run-with-scripts-disabled-and-git-sources-block","canonical_anchor":"npm-installs-run-with-scripts-disabled-and-git-sources-block","heading":"npm installs can run with scripts disabled and git sources blocked","tier":"notice","area":"npm Installs","scope":"both","heads_up":true,"url":"https:\/\/changelogs.core-directive.com\/v\/2.1.328\/e\/npm-installs-run-with-scripts-disabled-and-git-sources-block","release_url":"https:\/\/changelogs.core-directive.com\/v\/2.1.328","markdown":"### npm installs can run with scripts disabled and git sources blocked\n\nBehind the flag tengu_fluttering_starlight, npm installs run by Claude Code can add --allow-git=none and a --script-shell that disables scripts\n\n**Unclear.** It is not clear when the condition holds, so which npm installs get the extra options is unknown.\n\n**What**\n\nClaude Code sometimes runs npm, the JavaScript package installer, for you. It already passed `--git=` pointing at a path named `git-is-disabled` every time. It can now add two more options:\n\n- `--allow-git=none`, which stops npm from installing packages straight from git repositories.\n\n- `--script-shell=` pointing at a path named `scripts-are-disabled`, which stops the setup scripts that some packages run when they install.\n\nThese two options are added only when the feature flag `tengu_fluttering_starlight` is on. A feature flag is a switch Anthropic can turn on or off remotely. The flag is read in a safe mode. Its default value was not found, and nothing has been read about its state.\n\n**Why**\n\nPackage setup scripts and git sources are common ways for a bad package to run code on your computer. Where these options apply, npm installs started by Claude Code no longer run those scripts or fetch from git. A package that needs either one may then fail to install.\n\n- Area: npm Installs\n- Tier: You'll notice\n- Useful: 3\/5\n- Signal: 2\/5\n- Scope: both\n- Heads-up: yes"}