Skip to content

fix(core): allows postinstall script to run in npm v12 - #44

Open
tobi1220 wants to merge 10 commits into
anthropics:mainfrom
tobi1220:main
Open

fix(core): allows postinstall script to run in npm v12#44
tobi1220 wants to merge 10 commits into
anthropics:mainfrom
tobi1220:main

Conversation

@tobi1220

Copy link
Copy Markdown

Closes #43

Copilot AI review requested due to automatic review settings July 15, 2026 15:33

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Updates the Claude Code devcontainer feature installer to work with npm v12’s new lifecycle-script approval requirements, so postinstall can run during global installation.

Changes:

  • Adds --allow-scripts=@anthropic-ai/claude-code to the global npm install command in the feature install script.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment thread src/claude-code/install.sh
Copilot AI and others added 9 commits July 15, 2026 16:08
Co-authored-by: Copilot Autofix powered by AI <175728472+Copilot@users.noreply.github.com>
Add scenario-level assertions for `auto-install-node` path coverage
Add feature test scenario for Node auto-install / npm&lt;12 install path
fix(claude-code): gate npm `--allow-scripts` to npm v12+
@tobi1220
tobi1220 requested a review from Copilot July 15, 2026 16:42

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copilot was unable to review this pull request because the user who requested the review has reached their quota limit.

@tobi1220

Copy link
Copy Markdown
Author

@chrislloyd wdyt, interested in this quick fix?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

NPM 12 needs approval for postinstall

3 participants