Your Node.js project starts with a decision that looks trivial: which version to install. Pick the wrong kind and you inherit an unsupported runtime within months.
| Odd-numbered release (up to Node.js 26) | Even-numbered release | |
| Becomes LTS | No | Yes |
| Support window | Unsupported about six months after release | Roughly 30 months in total across Active and Maintenance LTS |
| Production use | Avoid | Yes |
Odd vs even Node.js versions
The Node.js release page says it plainly: production applications should run only on Active LTS or Maintenance LTS lines.
Historically, every major version spends six months as Current, and only the even-numbered ones graduate to LTS. Starting with Node.js 27 the schedule moves to one release a year, and every major gets LTS status, so the odd/even rule has an expiry date.

Look at the release table before you pin a version, since the current Active LTS line changes every year.
npm or Yarn
npm ships with Node.js and Yarn is an extra install. Both produce a lockfile that belongs in version control. I’d skip Yarn on a new project.
The editor matters less than people argue about. Visual Studio Code and WebStorm both handle Node.js well, and teams that bring in outside Node.js development services should insist on the same lockfile and the same Node version as the in-house team.
Which pattern for structure?
MVC is the default for Express apps. Well, it depends. Group code into modules by what it does, not by file type.
Security
Most Node.js security problems are ordinary web problems: XSS, SQL injection, weak authentication, plain HTTP. Validate and sanitize input, and use HTTPS everywhere, including between your own services. Keep authentication and authorization apart from the business logic, so that a change to one does not quietly weaken the other. Then take dependency updates seriously, because your own code is usually the smaller part of what actually runs in production, and a project can pull in a long tail of packages nobody on the team has read.
Run the dependency audit in CI so it fails a build instead of waiting for someone to remember. Snyk is one tool for this, and npm audit is the free starting point. The ecosystem is huge, which is why a single abandoned package can be the weak link.
None of that is specific to Node.
What should run on every push?
Unit tests for components, integration tests for how modules talk to each other, and a few end-to-end tests for the flows that make money. Mocha with Chai is the classic pairing, though Node has had a built-in test runner (node:test) since version 18, marked stable in 20, so a new project can start with no test dependency at all.
Run them on a CI server such as Jenkins.
The point is a red build before merge, not a red dashboard after release. Flaky tests are the usual reason teams stop trusting that signal, so fix or delete a flaky test the week it appears instead of rerunning the pipeline until it passes. A short guide to software testing strategies helps decide how many tests of each type you actually need, and the honest answer is usually fewer end-to-end tests than the team wants.
Deployment and upkeep
Git for version control, Docker so that staging and production run the same thing, and a rollback you have tried at least once. Winston gives you structured logs, and New Relic or Datadog watch performance and errors once the app is live. Log in a structured format from day one, since grepping free-form text during an outage is miserable. Alert on error rate and latency rather than on CPU alone. For a wider view on watching production, see application performance monitoring beyond the code.
Maintenance is mostly updates.
Review dependencies on a schedule, patch the vulnerable ones first, and move to the next LTS line before the one you run goes out of support. Put the end-of-life date of your Node.js line in the team calendar, because nobody remembers it otherwise, and an unsupported runtime is the kind of problem that shows up as a security finding in an audit rather than as a bug.
- Top MySQL CDC Tools for Streaming Changes to a Data Warehouse - December 4, 2026
- PyCharm Tutorial: From Install to Your First Debug Session - December 3, 2026
- How Software Teams Can Retire Old Hardware Without Losing Sleep - December 2, 2026



