When installing node on Mac using brew…

Use these instructions:

brew install node //don't use any version numbers here. If you try to install node20 for example, it installs to a different location and that fucks up the PATH for node and it won't be recognised properly in terminal

//for checking whether everything's installed correctly
node -v
npm -v 

Hi I'm Sudheer. I'm a MSc Advanced Computer Science student at Swansea University in Wales, UK. I share my learning resources on this blog. These include notes I created on various topics, step by step guides on how to implement things and documentation of whatever projects I'm working on.

Leave a Comment