Skip to content

Commit 7865faf

Browse files
committed
[fix] all-npm-install uses ignore-scripts
1 parent ed5a2de commit 7865faf

File tree

1 file changed

+10
-1
lines changed

1 file changed

+10
-1
lines changed

dev.py

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -141,7 +141,16 @@ def cmd_all_npm_install(args):
141141
"""Install all node dependencies for all examples"""
142142
for project_dir in EXAMPLE_DIRECTORIES + TEMPLATE_DIRECTORIES:
143143
frontend_dir = next(project_dir.glob("*/frontend/"))
144-
run_verbose(["npm", "install"], cwd=str(frontend_dir))
144+
run_verbose(
145+
[
146+
"npm",
147+
"install",
148+
# 2025-11-07: There is a bug in the postinstall script of a transitive dependency.
149+
# We can safely ignore the scripts to avoid the bug.
150+
"--ignore-scripts",
151+
],
152+
cwd=str(frontend_dir),
153+
)
145154

146155

147156
def cmd_all_npm_build(args):

0 commit comments

Comments
 (0)