# Installing Node.js on macOS

**URL:** https://forum.pinegrow.com/t/installing-node-js-on-macos/3163
**Category:** Javascript
**Created:** [July 12, 2019, 9:30pm UTC](https://forum.pinegrow.com/t/installing-node-js-on-macos/3163 "2019-07-12T21:30:39Z")
**Posts on this page:** 6
**Page:** 1

<div class="post-metadata">

### Author: ![miles](https://yyz2.discourse-cdn.com/flex036/user_avatar/forum.pinegrow.com/miles/32/2157_2.png) [@miles](https://forum.pinegrow.com/u/miles)
#### Post date: [July 12, 2019, 9:30pm UTC](https://forum.pinegrow.com/t/installing-node-js-on-macos/3163/1 "2019-07-12T21:30:39Z")

</div>

Howdy there,

What would be the prescribed method of installing Node.js on a Mac? Brew? nvm? If you install with nvm is it best to set that up under git? I’m completely wet behind the ears on this and am looking for some expert advice so that I can do it correctly.

Thanks!  
Michael

---

<div class="post-metadata">

### Author: ![Terry44](https://yyz2.discourse-cdn.com/flex036/user_avatar/forum.pinegrow.com/terry44/32/175_2.png) [@Terry44](https://forum.pinegrow.com/u/Terry44)
#### Post date: [July 13, 2019, 4:03pm UTC](https://forum.pinegrow.com/t/installing-node-js-on-macos/3163/2 "2019-07-13T16:03:14Z")

</div>

These type of questions are FAR beyond the users of this forum. Some know what you are talking about but this isn’t a coding forum. Basic CSS and Html at best here.

You will find more of what you want at stackoverflow or other related forums.

If you need a course on Node.js my defacto course site I go to is [Udemy.com](http://Udemy.com). Academind, a creator on Udemy, has Node.Js courses but you must already know Javascript ES6 before using or trying to code anything for Node.

---

<div class="post-metadata">

### Author: ![miles](https://yyz2.discourse-cdn.com/flex036/user_avatar/forum.pinegrow.com/miles/32/2157_2.png) [@miles](https://forum.pinegrow.com/u/miles)
#### Post date: [July 13, 2019, 5:59pm UTC](https://forum.pinegrow.com/t/installing-node-js-on-macos/3163/3 "2019-07-13T17:59:05Z")

</div>

@Terry44 - I do thank you VERY much for your help. I’ll go make an account over at stackoverflow and start searching the already asked questions there before I ask so as to avoid a black eye. 😀

I took your advice and googled for an Academind coupon and I got a dandy. I picked up a pile of their courses, including the one on Node, for less than it costs to fill up the tank on my truck. Thanks again! Oh, and the Node course is back-burnered until I get that Javascript ES6 course taken care of.

---

<div class="post-metadata">

### Author: ![AllMediaLab](https://yyz2.discourse-cdn.com/flex036/user_avatar/forum.pinegrow.com/allmedialab/32/2079_2.png) [@AllMediaLab](https://forum.pinegrow.com/u/AllMediaLab)
#### Post date: [July 13, 2019, 6:54pm UTC](https://forum.pinegrow.com/t/installing-node-js-on-macos/3163/4 "2019-07-13T18:54:31Z")

</div>

Hi Miles,

Of course you can ask it on this forum!

Just follow a small tutorial like this:  
[https://treehouse.github.io/installation-guides/mac/node-mac.html](https://treehouse.github.io/installation-guides/mac/node-mac.html)

When you have everything installed and you know how to open NPM you search for tutorials about working with NPM.

I give you an example (I’m on Windows, but the basics are the same).

You create a project folder say “My-Project-01” in Windows I would do that on the C drive under Users and my name, but you can CD in any location. You only have to find out how to do this on a Mac.  
This is only to give you an idea how it works.  
In the meantime I would open the project in Sublime 3 text editor to see the project and work with it.  
(it’s free for demo use and fully functional)

Open NPM and:

Install Gulp Globally at first before anything else:

`David@DESKTOP-2A2S3DO MINGW64 ~`  
$ npm -g install gulp

Then I open NPM again and you see in my case:

`David@DESKTOP-2A2S3DO MINGW64 ~`  
`$`

After the $ sign I type:

`David@DESKTOP-2A2S3DO MINGW64 ~`  
`$ CD My-Project-01`

I click on enter and I see:

`David@DESKTOP-2A2S3DO MINGW64 ~/My-Project-01`  
`$`

Now NPM is in my directory!

I go to Github:  
[https://github.com/JayeshLab/bootstrap-4-sass-gulp-4-boilerplate](https://github.com/JayeshLab/bootstrap-4-sass-gulp-4-boilerplate)

Click on the green button and copy the clone URL and paste it to NPM:  
[[https://github.com/JayeshLab/bootstrap-4-sass-gulp-4-boilerplate.git](https://github.com/JayeshLab/bootstrap-4-sass-gulp-4-boilerplate.git)] [https://github.com/JayeshLab/bootstrap-4-sass-gulp-4-boilerplate.git](https://github.com/JayeshLab/bootstrap-4-sass-gulp-4-boilerplate.git))

Like so:

`David@DESKTOP-2A2S3DO MINGW64 ~/My-Project-01`  
`$ git clone https://github.com/JayeshLab/bootstrap-4-sass-gulp-4-boilerplate.git`

Click enter and the Bootstrap 4 boilerplate with SASS installs from Github in your project folder.

In the Sublime text editor you can now read the instructions that come with this repository that you have to follow after cloning:

`# Bootstrap 4 boilerplate with sass and gulp 4 A Bootstrap 4.1.3 boilerplate with font-awesome, sass, gulp 4 tasks, browserSync (with hot-reloading). You can override bootstrap sass variables by placing those variables in`bootstrap-4-sass-gulp-4-boilerplate/assets/scss/\_bootstrap\_variable\_overrides.scss`

## Pre-requisite

- [Node.js](https://nodejs.org/en/download/ "Node Js")
- NPM (Comes with Node.js)
- [Gulp](https://gulpjs.com/ "Gulp")

Install Gulp Globally

```
$ npm -g install gulp

```

## Getting started

1. Clone repository:  
`git clone https://github.com/JayeshLab/bootstrap-4-sass-gulp-4-boilerplate.git`

2. Change directory:  
`cd bootstrap-4-sass-gulp-4-boilerplate`

3. Install all dependencies and libraries:  
`npm install`

4. Run Gulp Task:

- `gulp` - To compile scss to css, minify css and js and build ready for production files in **dist** folder.

- `gulp dev` - Starts a local server with browserSync and hot reloading on changes to files (HTML, SCSS, JS).  
`

It looks intimidation at first, but It’s easy when you get in to it.

Warm Regards,  
David

---

<div class="post-metadata">

### Author: ![miles](https://yyz2.discourse-cdn.com/flex036/user_avatar/forum.pinegrow.com/miles/32/2157_2.png) [@miles](https://forum.pinegrow.com/u/miles)
#### Post date: [July 13, 2019, 9:29pm UTC](https://forum.pinegrow.com/t/installing-node-js-on-macos/3163/5 "2019-07-13T21:29:46Z")

</div>

Hi David - @AllMediaLab ,

Thank you very much for running me through how to install node.js and use npm. I appreciate it. I had installed it yesterday but I ended up going on a mission to get rid of it and then seeing about installing it as a newer version after I started to have issues with some things that I wanted to do not working. I’m not sure if it was because I had chosen to use the LTS version of node or not. Perhaps it is better to use the bleeding edge version?

That git repository that you pointed out in your demonstration is right up my alley too, so thanks for that. I want to learn all of these different web technologies correctly but at the same time I need to share some information with folks on a completely different subject and I wish to use very simple Bootstrap pages to do so. I might see about putting in a Tipue search script as well to make it easy to find things that I post for them. I have a VPS that I just dropped the new Debian 10 on and set up so that I could do this on and am looking to set up git there so that I can just work on the site local and then update the changes to the VPS.

I’ll go look a bit more into nvm and see if it might be better for me to skip the LTS version of node and use nvm to manage the install(s) and then I’m going to see about cloning that git repository that you showed us as.

Thanks again, David. Much appreciated!  
Michael

---

<div class="post-metadata">

### Author: ![schpengle](https://yyz2.discourse-cdn.com/flex036/user_avatar/forum.pinegrow.com/schpengle/32/238_2.png) [@schpengle](https://forum.pinegrow.com/u/schpengle)
#### Post date: [September 12, 2021, 8:19pm UTC](https://forum.pinegrow.com/t/installing-node-js-on-macos/3163/7 "2021-09-12T20:19:25Z")

</div>

This is where I set it all up on a Mac too.

Just linking these two topics/tutorials together for those looking this up and not searching the forum.

> [@What is the Best, better Way to Install Node.js, NPM on a mac?](https://forum.pinegrow.com/t/what-is-the-best-better-way-to-install-node-js-npm-on-a-mac/4960):
>
> Hello! as it says above. I’m pretty sure this could either be ignored, or start a flame war. …or I’ll be totally blown away by everyone agreeing on one way! But Macports… [https://www.macports.org/](https://www.macports.org/) Homebrew… … the stand alone Installer, made by the devs themselves? Dis/Advantages of these 3 methods (are there more? heaven forbid!) I’m Concerned about Privilege/damage escalation with regards installing packages etc that I dont really understand or know little about but are deemed necess…
