GitHub
On this page Contents

Shell

Reset Node dependencies

Remove node_modules and package-lock.json, then install again from scratch.

Use this when you want to remove installed packages and the lockfile, then install again from scratch.

CMD #

Use this for Windows Command Prompt.

Command Prompt
rmdir /s /q node_modules
del package-lock.json
npm install

PowerShell #

Use this for Windows PowerShell.

PowerShell
Remove-Item -Recurse -Force node_modules
Remove-Item package-lock.json
npm install

Bash #

Use this for Bash on Linux, macOS, Git Bash, and WSL.

Shell
rm -rf node_modules
rm package-lock.json
npm install

Search docs

Use / or CtrlK to search

Start typing to search the docs.