npm has 7,693,523 recorded installs on VS Code Marketplace, an increase of 0.2% over the past 30 days, ranking #125 of 2,515 tracked listings.
Rating: 3.63 / 5 from 24 ratings
About npm
Node npm
❗IMPORTANT: This extension has been deprecated. Support for running npm scripts is now provided by VS Code. You can run npm scripts as tasks using task auto detection or from the npm scripts explorer.
This extension supports running npm scripts defined in the package.json file.
Commands
Commands for running scripts are available the npm category.
- Run a script (
npm run-script) defined in thepackage.jsonby picking a script defined in thescriptssection of thepackage.json. - Rerun the last npm script you have executed using this extension.
- Run npm install, also available in the context menu of the explorer when the
package.jsonfile - Terminate a running script
The scripts can be run either in the integrated terminal or an output window.
Touch bar
Support for Macbook Pro touch bar. You can run the following commands:
- npm install
- npm start
- npm test
- npm build

Settings
npm.runInTerminaldefines whether the command is run in a terminal window or whether the output form the command is shown in theOutputwindow. The default is to show the output in the terminal.npm.includeDirectoriesdefine additional directories that include apackage.json.npm.useRootDirectorydefine whether the root directory of the workspace should be ignored, the default isfalse.npm.runSilentrun npm commands with the--silentoption, the default isfalse.npm.bincustom npm bin name, the default isnpm.npm.enableTouchbarEnable the npm scripts on macOS touchbar.npm.oldKeybindings.enableEnable the original npm keybindings that start withcmd/ctrl R
Example
{
"npm.runInTerminal": false,
"npm.includeDirectories": [
"subdir1/path",
"subdir2/path"
]
}
Keyboard Shortcuts
This extension originally defined a chording keyboard shortcut for the R key. This has resulted in conflicts with the keybindings provided by VS Code and has caused frustration. To avoid these conflicts the keybindings have been changed to use the existing chording shortcut starting with the K key. The following table shows the default key bindings that can always be changed, see the customization documentation.
| Command | Old | New |
|---|---|---|
| Rerun last script | CMD+R R | CMD+K L |
| Select a script to run | CMD+R SHIFT+R | CMD+K SHIFT+R |
| Terminate the running script | CMD+R SHIFT+X | CMD+K SHIFT+X |
| Run the test script | CMD+R T | CMD+K T |
If you prefer the old keybindings starting with R you can define the setting npm.oldKeybindings.enable to true.
Description from the VS Code Marketplace listing.
- keybindings
- multi-root ready
- node
README badge
Show your rank in a README or on your website. The badge updates automatically.
Charts
Images: 30d · 1y · all time · 1600×900 dark
Adoption over time
7/30/90-day growth
Ranking history
Ratings over time
Listing placement
Listing placement
Filled points are observed values; hollow points come from Internet Archive snapshots of the listing page. Dashed segments span periods with no observations — values between points are not interpolated.
Each band is one page of 20. Installs on a linear scale. Placement is projected from installs, so it can differ from the marketplace's own sort order. Hover a dot to see the listing.
Recent observations
Full history (50)Similar VS Code Marketplace Other plugins
All 20 npm alternativesData source
Install counts, average rating, and rating counts come from the public Visual Studio Marketplace gallery API. Installs are cumulative and exclude updates.
Listing: https://marketplace.visualstudio.com/items?itemName=eg2.vscode-npm-script. First seen Oct 16, 2026; last successful collection Dec 6, 2026. See the methodology.