Pin a dependency to an exact version
BashCaret ranges are how a build that passed last week fails today. Exact versions plus a lockfile remove the surprise.
npm install --save-exact express@5.1.0
# Make it the default for this project:
npm config set save-exact true --location project
# Install exactly what the lockfile says, nothing newer:
npm ci