Developer Tools
In-depth guides and analysis on developer tools from the Safeguard engineering team.
2959 articles
What do npm link and file: dependencies do to your lockfile?
npm link makes a symlink and is not saved to package.json by default. file: paths are saved. What each does to installs, lockfiles, publishing and review.
Can npm install-strategy linked catch phantom dependencies?
npm's linked install strategy exposes only declared dependencies, so an undeclared import fails in development. What it catches, misses, and how to use it.
npm install printed a deprecation message. Is it a security issue?
An npm deprecation message is a maintainer note, not an advisory and not a removal. Here is how to read it, check for a real advisory and pick a next step.
npm install or npm ci: which should a new developer run?
Run npm ci on a fresh clone to install exactly what the lockfile says. Use npm install only when you mean to change dependencies. Here is the difference.
Why does npm install fail on node alpine and how do I fix it safely?
Native add-ons need a compiler that alpine images lack. Install the toolchain in a build stage only, so it never reaches production. Steps and trade-offs.
How should a solo developer configure an npm granular access token?
Scope it to one package, set an expiry, limit IP ranges, and leave bypass 2FA off unless CI needs it. What npm documents about granular tokens.
What does npm's EOVERRIDE error mean and how do I fix it?
npm throws EOVERRIDE when an override targets a package you depend on directly with a different spec. Use the dollar reference form to fix it.
devEngines or engines: which enforces your Node version?
engines is advisory for consumers, while devEngines can fail install, ci and run for contributors. What each field checks and how to set onFail.
npm ci or npm install: which should you run on your laptop?
Use npm ci to install exactly what the lockfile says and fail on drift; use npm install only when you mean to change dependencies. Here is the difference.
npm ci or npm install: which should your CI pipeline run?
Use npm ci in CI and deploys. It installs exactly what the lockfile records and fails on a mismatch, while npm install may rewrite it. Here is why.
Can npm install only versions published before a date?
Yes. npm's before option installs only versions available on or before a time you set. Here is how it helps with intake holds and incident replay.
Can npm install only versions published before a date?
Yes. The npm before option installs only versions available on or before a date. How it works, what it helps with, and why it is not a lockfile substitute.
Self-healing security runs on Safeguard.
Your first fix PR is minutes away.
No sales call required, even your agent can complete the purchase over MCP.