← Learn
Safe
rm -rf ./node_modules && npm ci

cross-platform · javascript · Advanced

Clears a dependency directory and reinstalls it from the lockfile. Both rm -rf and the chained command look alarming, but the path is relative, the directory is disposable by design, and the next command rebuilds it.

Think you can spot these under time pressure?

Start Training

More JavaScript / Node