Environment Variables
Path
Posted 2022-07-04
Open the start menu and write "path". The following option should show up, click it.
Image 1: System environment variables
This opens the window for system properties. Click "Environment Variables…" to continue.
Image 2: System properies window
While you can add the path to only your user, Node.JS is used in many other applications and I strongly advice adding it to the system variables instead of user variables. Select "PATH" and click "Edit…"
Image 3: Environment variables window
Finally just press "New" and input the path to your Node.JS installation in the new field under the already existing ones.
Image 4: Edit variables window
Now just press OK, OK, then, you guessed it, OK, and you're done!
For Linux, literally execute the a single BASH command in the terminal of your liking: