2

I don't remember what I had done, but every time I attempt to run a command (npm install -g gulp) in terminal, it returns a zsh: command not found: npm. This is a command I previously had no issue executing before.

I performed a clean install of OSX (Sonoma 14.4) and the problem still persists. So I am convinced this is default behavior and not user error.

1 Answers1

4

First of all, install homebrew on you mac using the following command:

/bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)"

Now, you can use homebrew to install nodejs on your mac.

brew install node

You can now use npm to install gulp or any other modules as npm and nodejs are part of the node package.