This one is going to be short and simple. However, it assumes you have a Conda Environment installed. If you haven’t, follow this tutorial: Miniconda Installation Guide (Linux)
To avoid conflicts with system-wide Node.js or other apps, it’s a good practice to install Node.js inside a Conda environment. This ensures all dependencies remain isolated.
1. Activate your Conda environment:
conda activate myenv
2. Install Node.js (version 20) within the environment:
conda install -c conda-forge nodejs=20
That’s it, you installed Node.js only inside your environment. It won’t affect any system-wide Node.js installation.