Categories
JavaScript Answers

How to fix env: node: No such file or directory error in Mac?

Spread the love

To fix env: node: No such file or directory error in Mac, we reinstall Node and npm.

For instance, we run

$ brew uninstall --force node
$ brew uninstall --force npm

to uninstall node and npm with brew.

And then we reinstall both with

$ brew install node

By John Au-Yeung

Web developer specializing in React, Vue, and front end development.

Leave a Reply

Your email address will not be published. Required fields are marked *