|
| 1 | +--- |
| 2 | +title: Upgrading Node.js |
| 3 | +layout: about |
| 4 | +description: Get a free assessment to upgrade your Node.js applications with confidence. |
| 5 | +--- |
| 6 | + |
| 7 | +# Upgrading Node.js |
| 8 | + |
| 9 | +Keeping your Node.js applications up-to-date is crucial for security, performance, and accessing the latest features. However, migrating from legacy versions can be challenging due to breaking changes, deprecated APIs, and dependency conflicts. |
| 10 | + |
| 11 | +Node.js itself is and always will be free, open source software. The guidance below is designed to help you plan and execute upgrades, whether you do it yourself or work with one of the service providers in our ecosystem. |
| 12 | + |
| 13 | +## Why Upgrade? |
| 14 | + |
| 15 | +- **Security**: Insight into vulnerabilities affecting your specific codebase. |
| 16 | +- **Performance**: Leverage the latest V8 engine improvements and Node.js optimizations. |
| 17 | +- **Support**: Ensure your applications are on supported release lines (LTS). |
| 18 | + |
| 19 | +## How to Upgrade |
| 20 | + |
| 21 | +Upgrading a Node.js application typically involves the following steps: |
| 22 | + |
| 23 | +1. **Assessment of Node.js versions, dependencies, and risk**: Identify outdated or supported versions and potential security risks in your environment. |
| 24 | +2. **Review Changelogs & Plan**: Look for breaking changes and create a phased upgrade plan for supported LTS releases. |
| 25 | +3. **Update Dependencies**: Ensure your third-party packages are compatible with the new Node.js version. |
| 26 | +4. **Hands-on execution**: Refactor code to address deprecations and breaking changes. |
| 27 | +5. **Run Tests**: Execute your test suite to identify any immediate regressions. |
| 28 | +6. **Deploy**: Roll out the upgrade to your staging and production environments. |
| 29 | + |
| 30 | +Take the first step and download the latest Node.js version. |
| 31 | + |
| 32 | +<div className="my-8 flex w-full justify-center"> |
| 33 | + <Button kind="primary" href="/download"> |
| 34 | + <span>Download the latest LTS Node.js®</span> |
| 35 | + </Button> |
| 36 | +</div> |
| 37 | + |
| 38 | +## Risks Determining the Upgrade Complexity |
| 39 | + |
| 40 | +<AlertBox level="warning"> |
| 41 | + While necessary, upgrades can introduce risks that need to be managed |
| 42 | + carefully. |
| 43 | +</AlertBox> |
| 44 | + |
| 45 | +- **Breaking Changes**: APIs may have changed or been removed, causing runtime errors. |
| 46 | +- **Dependency Incompatibility**: Critical libraries might not yet support the new Node.js version. |
| 47 | +- **Silent Failures**: Subtle behavior changes in the runtime can lead to difficult-to-debug issues. |
| 48 | + |
| 49 | +## Ecosystem Support Programs |
| 50 | + |
| 51 | +The OpenJS Foundation has established an LTS Upgrade & Modernization framework to help organizations move safely off legacy and end-of-life (EOL) Node.js versions. As the nonprofit steward of Node.js, the Foundation defines the program standards, ensures alignment with the upstream project, and works with qualified service providers who deliver tools and technical support under this framework. |
| 52 | + |
| 53 | +The following service providers participate in the OpenJS Foundation's LTS Upgrade & Modernization program: |
| 54 | + |
| 55 | +### NodeSource |
| 56 | + |
| 57 | +<div className="my-8 flex w-full justify-center"> |
| 58 | + <NodeSourceLogo className="h-12 w-auto dark:text-white" /> |
| 59 | +</div> |
| 60 | + |
| 61 | +[NodeSource](https://nodesource.com/products/nodejs-upgrade) provides upgrade assessment tools and expert-guided modernization services under the Foundation's framework. Their program offers a structured path to modernization: |
| 62 | + |
| 63 | +- **Scan Your App (Free)**: NodeSource's public "Upgrade Discovery CLI" tool scans your project's environment for dependencies, C++ addons, and static API usage. |
| 64 | +- **AI-Powered Analysis (Free)**: Receive deep insights including executive scores for security and upgrade risk, identification of critical blockers, and a complete scan for deprecated APIs and vulnerabilities. |
| 65 | +- **Custom Modernization Plan**: Access a tailored roadmap, specialized tools, and technical support from NodeSource experts to ensure a safe and efficient migration. |
| 66 | + |
| 67 | +<div className="my-8 flex w-full justify-center"> |
| 68 | + <Button |
| 69 | + kind="primary" |
| 70 | + href="https://nodesource.com/products/nodejs-upgrade" |
| 71 | + target="_blank" |
| 72 | + > |
| 73 | + <span>Learn more about NodeSource's upgrade services</span> |
| 74 | + </Button> |
| 75 | +</div> |
| 76 | + |
| 77 | +The OpenJS Foundation's Ecosystem Support Programs connect the Node.js community with qualified service providers. If your organization is interested in becoming a program participant, [contact the Foundation](https://openjsf.org/). |
0 commit comments