Watch on YouTubePlayPlays from YouTube. Google's privacy policy (opens in a new tab) applies.
Adam explains localhost and the tools a web app needs (Homebrew, Node.js, npm and fnm), installs Homebrew by hand, then has Claude install fnm and the latest Node LTS while he points out the commands it runs.
What you'll learn
- localhost: while you build, your own Mac hosts the app.
- Homebrew is an app store for developer tools; Node.js runs web apps (like Figma opens .fig files); npm is "Figma Community" for code packages; fnm switches Node versions.
- This setup happens once per machine.
- Install Homebrew from brew.sh, enter your Mac password, then run the "Next steps" commands it prints.
- Homebrew also installs Apple's Command Line Tools, needed for git and GitHub later.
- Check an install with
brew helpandbrew -v. - Delegate the rest to Claude with a clear, numbered prompt ("explain each step, no sudo, ask before changing shell settings").
- LTS means long-term support.
Chapters
- 00:00Localhost and the tools you need
- 02:13Installing Homebrew by hand
- 04:12Homebrew's next steps
- 05:24Asking Claude to install Node
- 07:09Watching Claude run commands
- 00:01Okay, we have our Figma file ready, but before we hand the link over to Claude, we need to make sure that Claude has all the tools it needs on
- 00:08our machine to actually build a Next.js application, which is what we are going to be working on in this video course.
- 00:14So whenever you open up uh web applications such as Figma or Framer or any other modern web application in your browser, you're looking at [snorts] something that has been
- 00:24built by some computer in the cloud.
- 00:27But when you're thinking about creating a web new web application from scratch, oftentimes you would want to run it locally on your computer, hosted locally on your computer first
- 00:36to check the results as it's, you know, just faster for you to iterate this way.
- 00:39Hence the name localhost.
- 00:41It's we are going to use our Mac to host our application locally first.
- 00:45Um now before our Mac can host the application locally, uh as I mentioned, it's going to need a couple of tools and we're going to install them in this
- 00:52video. So the first one is going to be Homebrew.
- 00:55And Homebrew, we can think of it as an App Store for engineers or developers.
- 00:59We're actually going to use Homebrew to install Node and Node or Node.js.
- 01:04Node.js is a program that's going to actually make it possible for our Mac to run uh Node.js based applications.
- 01:10Um we can think of Node.js as you know, what Figma is for opening up Figma files or what Photoshop is for opening up that PSD files.
- 01:19One cool thing that um that we can get with Node is npm, which is a Node package manager, which um I I guess we can think of it as
- 01:28a Figma community um for Figma.
- 01:30So it comes with plenty of great packages with for example UI component libraries like off-the-shelf solutions what we can just, you know, add to our application.
- 01:39And this is what npm is going to let us do and npm comes bundled with Node.js basically.
- 01:45And then there is the last thing which is FNM, which stands for Fast Node Manager.
- 01:50This is basically a little utility helper that's going to make it easier for us to switch in between different Node.js versions.
- 01:56One thing we should know is that depending on, you know, when when a particular has been built or what kind of technology is used to run it, sometimes we're
- 02:03going to need, you know, different node versions, uh like 22, 24, 25 and FNM just makes it super easy for us and our cloud agents to change in between
- 02:13these versions. Now, this setup is something that we only need to do once on per each machine and the good news is that we're only actually going to install
- 02:22Homebrew manually and then we're going to ask Claude to help us out with the rest.
- 02:27So, without further ado, let's go ahead and get started with Homebrew.
- 02:30So, I'm going to switch over to my web browser here and I'm going to type in brew.sh, which is a URL for Homebrew.
- 02:38And right off the bat, at the top I can see this command line which I can just copy into my clipboard and I can paste it in my terminal
- 02:45to install Homebrew. Um so, this is the first time we're going to be doing this here in this course.
- 02:50So, let me open up terminal.
- 02:53Oh, let's see. I'm going to type in terminal and I'm just going to paste in that yeah, that that command.
- 03:03This is the first time you're doing this, you might actually stumble upon something that something like this.
- 03:08Now, just make sure that the thing that you have in your clipboard is the thing we just copied from Homebrew.
- 03:13We know what I mean, I know what I've just copied and I know what I'm about to run.
- 03:17So, I'm just going to hit enter and then it's going to ask me for my password.
- 03:23And I'm going to hit enter and it's a confirmation of all the things that are going to be installed.
- 03:29So, I'm going to hit enter again to confirm.
- 03:33And then the installation is going to begin.
- 03:35Now, there is one cool thing with Homebrew.
- 03:39It's going to automatically install command line tools on our Mac, which is a matter set of like developer tools that are required for software development on any Mac.
- 03:50This is going to in the future unlock the possibility for us to work with Git or GitHub and a couple of other things.
- 03:57So, Homebrew is great because, you know, when you try to install it, it's going to first check if you have these tools installed.
- 04:03If you don't, then it's going to take care of it automatically as part of just one installation.
- 04:07So, let's give it a second and let's see how it goes.
- 04:11Um, okay. Now, depending on whether you have the the um command line tools installed or not or your internet connection, this process can take uh a couple of minutes,
- 04:21so be patient. Now, um thankfully, with the magic of video editing, I am done.
- 04:25I mean, the first step of the installation is done, but there is one more thing we should do and it's written right in here.
- 04:31This is something that I uh have noticed um a lot of designers miss, um but, you know, there are some additional comments that we need to run in order
- 04:38to finish or like finish our Homebrew setup.
- 04:41So, I'm just going to copy and paste them.
- 04:44And perhaps I'm going to uh open up a new shell, command N to do this, and I'm going to just paste these one by one.
- 04:51And then I 'm going to paste the order line.
- 04:55And then finally, the third one.
- 04:58And then I'm going to type in brew help.
- 05:02Uh seems like it's working.
- 05:06Let me try to confirm the Homebrew is installed by typing in um brew uh V.
- 05:13And I can see I'm currently running version 7.0.12, which confirms that Homebrew has been successfully installed on my Mac.
- 05:20So, uh the first step is done.
- 05:23Now, we are going to head over to Claude and ask it to help us out with Node.js and everything else.
- 05:28Now, I 'm going to uh close terminal.
- 05:31I'm going to restart my Claude uh desktop application just for a good measure, just to make sure um all of the changes um um are picked up.
- 05:40And I'm going to start it again.
- 05:42Uh let's see. I'm already in the Claude uh in the um code application.
- 05:47So, I'm just going to um perhaps I'm going to remain in my Tonik Parking Course folder.
- 05:53And I 'm going to dictate a prompt which I have prepared beforehand.
- 05:57And I have it over here, so I'm just going to be looking at it and type and and saying it out loud.
- 06:01And then you can just copy and paste it whenever wherever you're watching this video.
- 06:05Um, so let's try that now.
- 06:08Um, hey Claude, I'm setting up my Mac for web development and Homebrew is already installed.
- 06:14So please, one, install fnm with Homebrew.
- 06:18Two, set up fnm for my shell so it switches node versions automatically when I open up a project.
- 06:24Three, install the last node LTS with fnm and make it the default.
- 06:30And four, check that git is available.
- 06:34Before each step, please explain in one plain sentence what it does.
- 06:37Don't use sudo and ask before changing my shell settings.
- 06:41At the end, show me the installed versions of Homebrew, fnm, node, npm, and git.
- 06:48Okay. That's a lot to take in.
- 06:51I should um, let's see.
- 06:53I should perhaps clarify one thing.
- 06:54So I mentioned uh, installing uh, node LTS.
- 06:58Let's see. Node LTS.
- 06:59There it is. So LTS stands for long time support, I believe.
- 07:03Um, so I'm basically instructing Claude to install the most recent version, the most recent long-term support uh, version of Node.js.
- 07:11Um, okay. So I'm going to run it over here.
- 07:15I'm going to keep things in the auto mode um, so that we can um, so that we can move swiftly.
- 07:22Uh, let's see what the result is going to be.
- 07:23I haven't checked that part yet.
- 07:24Uh, so it's all going to be very much live and exciting.
- 07:28Um, okay. So it has properly uh, properly recognized that Homebrew is installed, but there is no fnm, there is no node, and a couple of files are missing.
- 07:38So it's going to be now installing fnm via Homebrew.
- 07:40So that is the thing that really differentiates, at least right now, Claude Code from the Claude AI.
- 07:46So Claude can currently is currently running a command.
- 07:49So that is the thing that I wouldn't be really able to do, you know, with the classic version of Claude.
- 07:54Um, okay. And as it's doing this, I can see all of the background tasks uh, and all of the commands that are being run over here in the side
- 08:01panel. Again, depending on, you know, when you are watching this video and which version um, on of the desktop application you're running, the UI might be slightly different, but
- 08:10this is something that should, I believe, remain pretty much unchanged.
- 08:13Um and I can actually click in here if I want to observe exactly what kind of commands uh Claude is running uh as these would be things that I
- 08:21could be very much doing myself in the terminal, just pasting or just typing in these things.
- 08:26Uh but then again, the purpose of using Claude is to just make your life a little bit easier and have, you know, a helping hand whenever anything goes wrong.
- 08:34Um so let's see.
- 08:36Uh okay. So Claude is asking me whether it can create um a crucial configuration file um and um it's going to be needed for the Fast Node Manager uh
- 08:46and I'm going to allow it over here.
- 08:48So I'm going to submit.
- 08:49You might have that file already on your computer uh if you've ever um explored um you know software development on your Mac before.
- 08:56Uh this is again a clean installation, so I'm really running fresh.
- 08:59I you know I don't have anything.
- 09:01Um okay. So right.
- 09:04Um I can see Claude is now attempting um installation of the latest uh node long-term support version uh so that it can become my default.
- 09:13Let's give it a second.
- 09:16Okay, my Claude has finished.
- 09:17Um it has run into some hiccups, but um it eventually succeeded on the third try, so good for Claude.
- 09:23And um it handed off uh you know um summary message confirming that we have indeed installed the Fast Node Manager.
- 09:30Uh we have um a proper configuration.
- 09:32We have the node uh 26 installed and this is our main like or this is our default version that's going to be used for all new projects or projects
- 09:41um that do not have any specific node version requirements.
- 09:45And then because we have that FNM installed, it means that um you know opening up older projects like cloning existing Git repositories um uh in the future, it's going
- 09:55to be or it should be rather seamless in theory.
- 09:58Um so in short, we are all set up and ready to go.
- 10:02So I'll see you in the next video in which we're going to go back to Figma and we're we're going to send that Figma file to Claude.