Node.js 24 · Packages with npm
Install exactly what the lockfile says
Delete node_modules and install from package-lock.json. Use it in CI.
npm ci
Caution: Removes the existing node_modules folder, and fails if package.json and the lockfile disagree.
Official Node.js 24 documentation