Skip to content
| Marketplace
Sign in
Visual Studio Code>Other>Refresh NPM PackagesNew to Visual Studio Code? Get it now.

Refresh NPM Packages

matteopieroni

|
3,206 installs
| (1) | Free
An extension that prompts you to run a fresh install when you pull an updated package-lock.json or yarn.lock.
Installation
Launch VS Code Quick Open (Ctrl+P), paste the following command, and press enter.
Copied to clipboard
More Info

Refresh NPM Packages

Refresh NPM Packages is the VS Code extension that prompts you to run a fresh install when you pull an updated package-lock.json or yarn.lock.

Refresh NPM Packages demo

Settings

You can set your preference for the rebuild command when a package-lock.json is detected.

This setting defaults to npm ci, but you can change it in VS Code settings.

Refresh NPM Packages setting default npm ci

Refresh NPM Packages setting npm i

Requirements

This extension is intended for workspaces that have source control and for which the lock file might be updated on the remotes.

This extension only works when opening a workspace folder in VS Code that contains at least one lock file for NPM Packages.

Known Issues

At the moment there are no known issues. If you find any please contibute using the repo issues tab

Release Notes

See changelog


Enjoy!

  • Contact us
  • Jobs
  • Privacy
  • Terms of use
  • Trademarks
© 2023 Microsoft