Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Homebrew install Node.js : Command Not Found

I have a Mac running macOS 10.13.1. After installing Homebrew successfully, I tried to intall Node.js with

brew install node

The installation seems to complete fine in the terminal, however following up with a version check ;

node -v

results in

-bash: node: command not found

Any pointers on how to fix this ?, I am trying to avoid to have to install node from binary.

like image 621
fitzmode Avatar asked Apr 06 '26 19:04

fitzmode


2 Answers

try running this command

brew link node
like image 190
Soufyane GRINI Avatar answered Apr 08 '26 11:04

Soufyane GRINI


I was having this issue but it was because I was installing an older version of node. For older versions, the path isn't modified automatically to avoid colliding with the potentially installed up to date version. After running the brew install command, it should give you instructions on how to add it to your path if thats what you want to do.

like image 34
katmfoo Avatar answered Apr 08 '26 13:04

katmfoo