GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — feat: namespace install-script approval commands under npm install-scripts by manzoorwanijk · Pull Request #9629 · npm/cli

Conversation

@manzoorwanijk

@manzoorwanijk manzoorwanijk commented Jun 24, 2026

Copy link
Copy Markdown
Contributor

Add a namespaced npm install-scripts command that groups the install-script approval operations, following npm's existing npm cache <cmd> / npm token <cmd> convention:

  • npm install-scripts approve <pkg>... | --all
  • npm install-scripts deny <pkg>... | --all
  • npm install-scripts ls (list packages with unreviewed install scripts)

The shipped npm approve-scripts and npm deny-scripts commands keep working as aliases for approve and deny, so this is additive and backwards compatible. The shared AllowScriptsCmd base now dispatches through runMode(mode, args); the standalone commands route through it via static verb. The --allow-scripts-pending flag is only honored by the commands that declare it, so the namespace lists exclusively through ls.

References

Closes #9545
Follow-up from RFC npm/rfcs#868.

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

All reactions
manzoorwanijk added 2 commits June 24, 2026 16:01
@manzoorwanijk
feat(install-scripts): namespace install-script approval commands
7a27a26
@manzoorwanijk
test(install-scripts): cover the install-scripts namespace dispatch
5d10d61
@manzoorwanijk manzoorwanijk mentioned this pull request Jun 24, 2026
namespace the install-script approval commands #9545
Closed
manzoorwanijk added 3 commits June 24, 2026 16:22
@manzoorwanijk
test(install-scripts): cover the completion subcommand list
9fa7e61
@manzoorwanijk
feat(install-scripts): point install-time guidance at the install-scr…
308cfea
…ipts namespace
@manzoorwanijk
feat(install-scripts): redirect the deny --allow-scripts-pending erro…
17315f8
…r to install-scripts ls
@manzoorwanijk
manzoorwanijk marked this pull request as ready for review June 24, 2026 11:36
@manzoorwanijk
manzoorwanijk requested review from a team as code owners June 24, 2026 11:36
@owlstronaut owlstronaut added the backport:v11 label Jun 24, 2026
owlstronaut
owlstronaut approved these changes Jun 24, 2026
View reviewed changes
@owlstronaut
owlstronaut merged commit 0c4dd41 into npm:latest Jun 24, 2026
52 checks passed

Uh oh!

There was an error while loading. Please reload this page.

@github-actions

github-actions Bot commented Jun 24, 2026

Copy link
Copy Markdown
Contributor

⚠️ Backport to release/v11 failed.

This usually means the cherry-pick had conflicts. Please create a manual backport:

git fetch origin release/v11
git checkout -b backport/v11/9629 origin/release/v11
git cherry-pick -x 0c4dd414f213971c82fe0d620bbf34d7fae25f0d
# resolve any conflicts, then:
git push origin backport/v11/9629
Error details
Command failed: git cherry-pick -x 0c4dd414f213971c82fe0d620bbf34d7fae25f0d
error: could not apply 0c4dd414f... feat: namespace install-script approval commands under npm install-scripts (#9629)
hint: After resolving the conflicts, mark them with
hint: "git add/rm <pathspec>", then run
hint: "git cherry-pick --continue".
hint: You can instead skip this commit with "git cherry-pick --skip".
hint: To abort and get back to the state before "git cherry-pick",
hint: run "git cherry-pick --abort".
hint: Disable this message with "git config set advice.mergeConflict false"

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@github-actions github-actions Bot mentioned this pull request Jun 24, 2026
chore: release 12.0.0-pre.2 #9594
Merged
@manzoorwanijk
manzoorwanijk deleted the feat/install-scripts-namespace branch June 24, 2026 14:51
@manzoorwanijk

manzoorwanijk commented Jun 24, 2026

Copy link
Copy Markdown
Contributor Author

I will try creating a manual backport for this, but my guess is that it will be chaotic 😄

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@owlstronaut owlstronaut mentioned this pull request Jun 24, 2026
feat: namespace install-script approval commands under npm install-scripts (#9629) #9634
Closed
@owlstronaut

owlstronaut commented Jun 24, 2026

Copy link
Copy Markdown

I will try creating a manual backport for this, but my guess is that it will be chaotic 😄

thanks! I appreciate it. I started to but please do 😄

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@manzoorwanijk manzoorwanijk mentioned this pull request Jun 24, 2026
feat: namespace install-script approval commands under npm install-scripts #9635
Merged
manzoorwanijk added a commit to manzoorwanijk/npm-cli that referenced this pull request Jun 24, 2026
@manzoorwanijk
feat: namespace install-script approval commands under npm install-sc…
2faac6f
…ripts (npm#9629)

Add a namespaced `npm install-scripts` command that groups the
install-script approval operations, following npm's existing `npm cache
<cmd>` / `npm token <cmd>` convention:

- `npm install-scripts approve <pkg>... | --all`
- `npm install-scripts deny <pkg>... | --all`
- `npm install-scripts ls` (list packages with unreviewed install
scripts)

The shipped `npm approve-scripts` and `npm deny-scripts` commands keep
working as aliases for `approve` and `deny`, so this is additive and
backwards compatible. The shared `AllowScriptsCmd` base now dispatches
through `runMode(mode, args)`; the standalone commands route through it
via `static verb`. The `--allow-scripts-pending` flag is only honored by
the commands that declare it, so the namespace lists exclusively through
`ls`.

Closes npm#9545
Follow-up from RFC npm/rfcs#868.
manzoorwanijk added a commit to manzoorwanijk/npm-cli that referenced this pull request Jun 24, 2026
@manzoorwanijk
feat: namespace install-script approval commands under npm install-sc…
c45e8b9
…ripts (npm#9629)

Add a namespaced `npm install-scripts` command that groups the
install-script approval operations, following npm's existing `npm cache
<cmd>` / `npm token <cmd>` convention:

- `npm install-scripts approve <pkg>... | --all`
- `npm install-scripts deny <pkg>... | --all`
- `npm install-scripts ls` (list packages with unreviewed install
scripts)

The shipped `npm approve-scripts` and `npm deny-scripts` commands keep
working as aliases for `approve` and `deny`, so this is additive and
backwards compatible. The shared `AllowScriptsCmd` base now dispatches
through `runMode(mode, args)`; the standalone commands route through it
via `static verb`. The `--allow-scripts-pending` flag is only honored by
the commands that declare it, so the namespace lists exclusively through
`ls`.

Closes npm#9545
Follow-up from RFC npm/rfcs#868.
This was referenced Jun 24, 2026
move "list pending install scripts" out of approve-scripts --allow-scripts-pending #9546
Closed
report unused allowScripts #9561
Closed
manzoorwanijk added a commit to manzoorwanijk/npm-cli that referenced this pull request Jun 24, 2026
@manzoorwanijk
feat: namespace install-script approval commands under npm install-sc…
cea039c
…ripts (npm#9629)

Add a namespaced `npm install-scripts` command that groups the
install-script approval operations, following npm's existing `npm cache
<cmd>` / `npm token <cmd>` convention:

- `npm install-scripts approve <pkg>... | --all`
- `npm install-scripts deny <pkg>... | --all`
- `npm install-scripts ls` (list packages with unreviewed install
scripts)

The shipped `npm approve-scripts` and `npm deny-scripts` commands keep
working as aliases for `approve` and `deny`, so this is additive and
backwards compatible. The shared `AllowScriptsCmd` base now dispatches
through `runMode(mode, args)`; the standalone commands route through it
via `static verb`. The `--allow-scripts-pending` flag is only honored by
the commands that declare it, so the namespace lists exclusively through
`ls`.

Closes npm#9545
Follow-up from RFC npm/rfcs#868.
owlstronaut pushed a commit that referenced this pull request Jun 24, 2026
@manzoorwanijk
feat: namespace install-script approval commands under npm install-sc…
fc9d4c7
…ripts (#9635)

Backport of #9629 to `release/v11`.

Adds the namespaced `npm install-scripts` command (`approve`, `deny`,
`ls`), keeping `npm approve-scripts` / `npm deny-scripts` working as
aliases, and points the install-time, rebuild, and strict-allow-scripts
guidance at the new namespace.

## References

Backports #9629
@manzoorwanijk manzoorwanijk mentioned this pull request Jun 29, 2026
feat(install-scripts): use install-scripts as the warning log title #9697
Merged
This was referenced Aug 1, 2026
feat: surface linked non-service-connected diagnosed conditions on suggestions page richardparslow-commits/Secondary_Condition_Finder#32
Merged
Upgrade stable runtimes and dependencies evertonschuster/Agenza#79
Merged
This was referenced Aug 11, 2026
ci: enforce the npm 12 install-script policy instead of declaring it ojungo69/salon-reservation-oss#17
Merged
fix(CI): use latest npm version + package fix azerothcore/Keira3#3862
Merged
@manzoorwanijk manzoorwanijk mentioned this pull request Sep 10, 2026
Security: Opt in to the npm v12 supply-chain defaults WordPress/gutenberg#82689
Merged
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Reviewers

1 more reviewer
@owlstronaut owlstronaut owlstronaut approved these changes
Reviewers whose approvals may not affect merge requirements

Uh oh!

There was an error while loading. Please reload this page.

Assignees

No one assigned

Labels

backport:v11

Projects

None yet

Milestone

No milestone

Development

Successfully merging this pull request may close these issues.

namespace the install-script approval commands

Uh oh!

There was an error while loading. Please reload this page.

2 participants

@manzoorwanijk @owlstronaut
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
You are visitor 01402775 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.