You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
[BUG] Workspace lifecycle scripts silently skipped under install-strategy=linked #9982
This is not just a request to bump a dependency for a CVE
This is not solely a request to bump a dependency for a CVE
Current Behavior
With install-strategy=linked, npm install does not run a workspace's preinstall, install, postinstall or prepare scripts. Nothing is logged, the unreviewed scripts advisory does not list the workspace, and --strict-allow-scripts still exits 0. Hoisted on npm 12 and linked on npm 11.19.1 run all four.
Expected Behavior
Workspace scripts run under linked, as they do under hoisted, since workspaces are exempt from the allowScripts gate.
Steps To Reproduce
mkdir x &&cd x
mkdir -p packages/a
echo'{"name":"r","version":"1.0.0","workspaces":["packages/*"]}'> package.json
echo'{"name":"a","version":"1.0.0","scripts":{"postinstall":"touch post.txt","prepare":"touch prepared.txt"}}'> packages/a/package.json
npm install --install-strategy=linked --no-audit --no-fund
ls packages/a # expected: package.json post.txt prepared.txt, actual: package.json
This is not just a request to bump a dependency for a CVE
This is not solely a request to bump a dependency for a CVE
Current Behavior
With install-strategy=linked, npm install does not run a workspace's preinstall, install, postinstall or prepare scripts. Nothing is logged, the unreviewed scripts advisory does not list the workspace, and --strict-allow-scripts still exits 0. Hoisted on npm 12 and linked on npm 11.19.1 run all four.
Expected Behavior
Workspace scripts run under linked, as they do under hoisted, since workspaces are exempt from the allowScripts gate.
Steps To Reproduce
mkdir x &&cd x
mkdir -p packages/a
echo'{"name":"r","version":"1.0.0","workspaces":["packages/*"]}'> package.json
echo'{"name":"a","version":"1.0.0","scripts":{"postinstall":"touch post.txt","prepare":"touch prepared.txt"}}'> packages/a/package.json
npm install --install-strategy=linked --no-audit --no-fund
ls packages/a # expected: package.json post.txt prepared.txt, actual: package.json
This is not just a request to bump a dependency for a CVE
This is not solely a request to bump a dependency for a CVE
Current Behavior
With install-strategy=linked, npm install does not run a workspace's preinstall, install, postinstall or prepare scripts. Nothing is logged, the unreviewed scripts advisory does not list the workspace, and --strict-allow-scripts still exits 0. Hoisted on npm 12 and linked on npm 11.19.1 run all four.
Expected Behavior
Workspace scripts run under linked, as they do under hoisted, since workspaces are exempt from the allowScripts gate.
Steps To Reproduce
mkdir x &&cd x
mkdir -p packages/a
echo'{"name":"r","version":"1.0.0","workspaces":["packages/*"]}'> package.json
echo'{"name":"a","version":"1.0.0","scripts":{"postinstall":"touch post.txt","prepare":"touch prepared.txt"}}'> packages/a/package.json
npm install --install-strategy=linked --no-audit --no-fund
ls packages/a # expected: package.json post.txt prepared.txt, actual: package.json
Activity
saitanallensantiago26-beep commentedon Sep 15, 2026
saitanallensantiago26-beep commentedon Sep 15, 2026
Framework: Allow the @wordpress/icons prepare script
Framework: Allow the @wordpress/icons prepare script
Framework: Update npm to v12
Framework: Update npm to v12
Framework: Update npm to v12
Framework: Update npm to v12
Framework: Update npm to v12
Framework: Update npm to v12
Framework: Update npm to v12
Framework: Update npm to v12
Framework: Update npm to v12
Framework: Update npm to v12
Framework: Update npm to v12
Framework: Update npm to v12
Framework: Update npm to v12
Framework: Update npm to v12
Framework: Update npm to v12
Framework: Update npm to v12
Framework: Update npm to v12
Framework: Update npm to v12