Skip to content
| Marketplace
Sign in
Visual Studio Code>Other>Command Palette NPM Script RunnerNew to Visual Studio Code? Get it now.
Command Palette NPM Script Runner

Command Palette NPM Script Runner

elltg

|
42,797 installs
| (1) | Free
Run NPM scripts from the command palette
Installation
Launch VS Code Quick Open (Ctrl+P), paste the following command, and press enter.
Copied to clipboard
More Info

Features

This extension lets you run NPM scripts from the command palette.

Run the extension from the command palette and it will list the scripts from package.json file at the root of the workspace.

Upon selecting an item, it will focus the last used terminal (or a new terminal) and send the text npm run ${selected script name} which will of course result in that script being run.

Demo: demo

Requirements

None

Extension Settings

None

Known Issues

None

Release Notes

  • Feb 2024 - Version 2
    • This extension now provides one more command for the command palette.
    • The existing command works the same but is now named "Run NPM Script From /package.json (Last Used Terminal)"
    • The new command works almost the same but as the name suggests "Run NPM Script From /package.json (New Terminal)". It will open your chosen npm script in a new terminal. This still has an advantage over the built-in runner as it will still be a terminal that you have control over and can terminate the command with Ctrl+C and then restart simply by using that shells' history with the up arrow.
  • Contact us
  • Jobs
  • Privacy
  • Manage cookies
  • Terms of use
  • Trademarks
© 2025 Microsoft