Skip to content
| Marketplace
Sign in
Visual Studio Code>Other>Auto NPX (Windows bash)New to Visual Studio Code? Get it now.
Auto NPX (Windows bash)

Auto NPX (Windows bash)

Kevin Kwong

|
850 installs
| (0) | Free
Auto resolving local Node.js binaries in VS Code terminal
Installation
Launch VS Code Quick Open (Ctrl+P), paste the following command, and press enter.
Copied to clipboard
More Info

Auto NPX

Auto resolving local Node.js binaries in VS Code terminal.

Visual Studio Marketplace Version

Usage

When you have packages installed locally, just call it without npx! (and you don't need to install them globally anymore)

- $ npx vite
+ $ vite

- $ npx jest
+ $ jest

- $ npx -p typescript tsc
+ $ tsc

- $ npx -p webpack-cli webpack
+ $ webpack

How

When you open up a terminal in VS Code, this extension injects PATH env variable with the local Node.js binaries.

export PATH=$PWD/node_modules/.bin:$PATH

And that's it!

The PATH modification will only affect the current session so no worries about your other environments.

  • Contact us
  • Jobs
  • Privacy
  • Manage cookies
  • Terms of use
  • Trademarks
© 2025 Microsoft