Software⏱️ 3 min read📅 2026-06-11

How to Fix: Node.js Error "version `GLIBCXX_3.4.26' not found (required by node)" after installing nvm

Node.js error with missing GLIBCXX_3.4.26 version.

Quick Answer: Try updating the system's libc6 package to resolve the issue.

The error 'version `GLIBCXX_3.4.26' not found (required by node)" occurs when the system cannot find the specified version of the GLIBCXX library, which is a dependency required by Node.js. This issue affects users who have installed Node.js via nvm on systems that do not have this specific library version available.

This error can be frustrating for developers and system administrators as it prevents them from running their applications or scripts using Node.js. However, with the right steps, you can resolve this issue and get back to working with Node.js.

💡 Why You Are Getting This Error

  • The primary reason for this error is that nvm installs Node.js without ensuring the required dependencies are available on the system. In this case, the GLIBCXX_3.4.26 library is not found, which is a requirement for Node.js to function correctly.
  • Alternatively, if you have upgraded your system's packages or installed other software that conflicts with Node.js, it could also lead to this error.

🛠️ Step-by-Step Verified Fixes

Update the system's package list and install the required dependencies

  1. Step 1: Open a terminal on your Raspberry Pi and run the command `sudo apt update` to update the system's package list.
  2. Step 2: Next, run the command `sudo apt install libc6-dev libstdc++5` to install the required dependencies. This will ensure that the GLIBCXX_3.4.26 library is available on the system.
  3. Step 3: Finally, verify that Node.js has been successfully installed by running `nvm install node` and then checking the version with `node -v`.

Use a different Node.js version that does not require GLIBCXX_3.4.26

  1. Step 1: If you cannot install the required dependencies or if you prefer to use a different version of Node.js, you can try installing a version that does not require GLIBCXX_3.4.26.
  2. Step 2: Run `nvm install node-lts` or `nvm install 14.x` (for Node.js 14) to install a version that is less dependent on the GLIBCXX library.

💡 Conclusion

By following these steps, you should be able to resolve the 'version `GLIBCXX_3.4.26' not found (required by node)" error and get back to working with Node.js on your Raspberry Pi.

Did this fix your problem?

If not, try searching for specific error codes.

🔍 Search Error Database

❓ Frequently Asked Questions