Brew Install Mac Catalina

Installing MongoDB on Mac (Catalina and non-Catalina) 14th Feb 2020. I had to reconfigure my Macbook after sending it for repairs. During the reconfiguration period, I noticed the instructions I linked to in “Setting up a local MongoDB connection” were outdated. Here’s an updated version on how to install MongoDB on a Mac. There are a few.

  1. Homebrew (“Brew”) per se did not have issues after the Catalina upgrade. However, some packages delivered through formulae and casks have not been updated for Catalina and are stuck back in Mojave (or High Sierra, eek!). Old packages will likely have issues with Catalina since a lot has changed. For example, Catalina now uses Ruby 2.6.
  2. Gd: 2.3.2: Graphics library to dynamically manipulate images: gts: 0.7.6: GNU triangulated surface library: libpng: 1.6.37: Library for manipulating PNG images.

In this tutorial we will learn to install TypeScript on Mac using NPM a NodeJS package manager.

Step 1: Install Homebrew

Homebrew is a package manager for Mac and helps to easily install and uninstall softwares on a Mac.

Brew Install Openssl Mac Catalina

Brew Install Mac Catalina

To install Homebrew run the following command in the terminal.

For more detail on Homebrew check their website.

Once you have homebrew installed on your system you can use it to install many packages.

Step 2: Install Node

Brew Install Mac Catalina Os

Install

By installing NodeJS you will also get NPM which is Node package manager. It will help you to install other packages.

To install Node on your Mac using Homebrew type the following command.

Once you have Node installed you can check its version by typing the following command in the terminal.

And, to check the version of NPM type the following command in the terminal.

Click here to read the tutorial on How to install NodeJS on Mac.

So, now we have Node and NPM installed on our system. Time to install TypeScript using NPM.

Step 3: Install TypeScript

Catalina

We will install TypeScript globally on our Mac so that we can access it from any directory. For this we will use the following command.

Brew Install Mysql Mac Catalina

You may have to use sudo if you don't have permissions.

Output

Brew Install Mac Catalina Download

Once you have TypeScript installed use the following command to check the version.

Output

Using TypeScript to convert .TS file into .JS file

Lets say, we have a project folder example and we have an app.ts TypeScript file which we want to convert into JavaScript file.

The content of app.ts file is given below.

To convert app.ts file into app.js file we use the following command in the terminal.

Output

Uninstall TypeScript

To uninstall TypeScript globally we use the following command.

Brew install mac catalina download

You may have to use sudo if you don't have the permissions.

Output

Mac Catalina Install Brew

And that's all for this tutorial. Have fun coding.