Try   HackMD

Adding Node.JS to the system path

tags: Environment Variables Path

Posted 2022-07-04


For Windows Users

For Linux users

Windows Users

Open the start menu and write "path". The following option should show up, click it.

Image Not Showing Possible Reasons
  • The image file may be corrupted
  • The server hosting the image is unavailable
  • The image path is incorrect
  • The image format is not supported
Learn More →

Image 1: System environment variables

This opens the window for system properties. Click "Environment Variables…" to continue.

Image Not Showing Possible Reasons
  • The image file may be corrupted
  • The server hosting the image is unavailable
  • The image path is incorrect
  • The image format is not supported
Learn More →

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 Not Showing Possible Reasons
  • The image file may be corrupted
  • The server hosting the image is unavailable
  • The image path is incorrect
  • The image format is not supported
Learn More →

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 Not Showing Possible Reasons
  • The image file may be corrupted
  • The server hosting the image is unavailable
  • The image path is incorrect
  • The image format is not supported
Learn More →

Image 4: Edit variables window

Now just press OK, OK, then, you guessed it, OK, and you're done!

Linux Users

For Linux, literally execute the a single BASH command in the terminal of your liking:

export PATH=$PATH:/usr/local/nodejs/bin