HomeCore Java

Install Java, Node JS, Angular, Maven, NVM, IntelliJ IDEA, Visual Studio on Mac

Like Tweet Pin it Share Share Email

Let us learn how to install Java, Node JS, Angular, Maven IntelliJ IDEA and NPM on Mac. This tutorial helps you step by step while installing Java, Node JS,Angular, Maven, IntelliJ IDEA and Visual studio Code on Mac.

Moreover, we all know that the combination of above mentioned technologies are booming now a days. In fact, Lot of companies are adopting Node JS along with Java and Angular.

Therefore, we wrote this article. So please read this article till end.

Undoubtedly, After reading this complete article you will be able to install Java, Node JS, Angular, IntelliJ IDEA, Maven and NPM on Mac Os.

Step by step guide to install Java, Node JS, Angular, IntelliJ IDEA, Maven and NPM

So friends, let us learn installation step by step.

Firstly, we need to make sure that Homebrew is installed on MacOS. Further, let us see how to install Homebrew? In case, Homebrew is already install, we can update it.

Prerequisites

Surely, You must have admin access to your Mac laptop. Once you have admin access to your Mac laptop, let us start with the process to install softwares.

Open Terminal

Firstly, you open Terminal in your Mac laptop. Further for opening Terminal go to Finder > Application > Terminal. Moreover, Please check the below image to assist yourself.

Install Java Node JS Angular IntelliJ IDEA on Mac
Install Java Node JS Angular IntelliJ IDEA on Mac

Install Xcode Command Line Tools

Before starting Homebrew installation, we recommend to install Xcode. In fact, Xcode is an integrated development environment. However, It is really not needed for Homebrew. Because, It is consist of software development tools for MacOs so you should install it.

So, please execute this command for installing Xcode.

$ xcode-select --install

Once you type this command in Terminal click on return key. Further, you will be prompted to software installation page. Later, it will ask to accept software terms and condition. Go ahead and accept all these. Once done, installation will complete.

Install and Use Homebrew on Mac

Once you installed Xcode successfully, let’s install Homebrew. For installing Homebrew, further type this command in Terminal.

$ curl -fsSL -o install.sh https://raw.githubusercontent.com/Homebrew/install/master/install.sh

Once you type this command, hit Return key. Basically, It will take few minutes to get installed. In case it is taking more time for you do stop it in the middle. Because, it depends on your internet speed.

Once this command completes, please type this command to make sure everything went well. In case, you are not able to understand the file content, please ignore it.

$ less install.sh

Once you have verified the file content. Execute the script with bash command.

$ /bin/bash install.sh

Once it completes, your installation is done. Further, You can check the brew installation by typing this command.

$ brew doctor

Once everything went well, you will see this output.

Your system is ready to brew.

Once you get the above message, let us move to the next step.

Install SDKMAN on Mac

In fact, you might think why are we installing SDKMAN ? Why are we not installing Java immediately?

Since in today’s world Java has multiple versions. Therefore, all the companies using different versions as per their customers. In fact, our cohort falls in the same pattern.

In this case, we need to switch Java versions frequently due to multiple projects, multiple Java versions. So, to overcome, this problem we use SDKMAN on our Mac laptop.

So, let us install SDKMAN. Moreover, we suggest you to close the Terminal and restart it.

Once you have restarted the Terminal, further run this command in Terminal to install SDKMAN.

$ curl -s “https://get.sdkman.io" | bash

After this script executed successfully further run this command.

$ source "$HOME/.sdkman/bin/sdkman-init.sh"

Wait till this command executed successfully, SDKMAN will get installed in your system. Afterwards, please run this command in Terminal to check the various versions of Java.

$ sdk version

Once you run this command, you will the installed version of SDKMAN. Now, let us move to install Java further with the required version..

Install Java using SDKMAN

Before starting Java installation, let us see the available versions of Java in SDKMAN. In order to clarify the available versions, please run the following cmmand.

$ sdk list java

Once you run this command, you will get plethora of Java versions. Moreover, you can see the Java version from vendors like Amazon, Microsoft and AdoptOpenJDK.

In this tutorial we are going to install java 11.0.11.hs-adpt from AdoptOpenJDK. So, please run this command to install JDK 11 by AdoptOpenJDK.

$ sdk install java 11.0.11.hs-adpt

Once this script executed successfully, your Java installation is ready.

Further, let us check whether the installed version is correct. So, for doing this, please execute this command.

$ java -version

Once run successfully, you will get this kind of result.

tarunkumarsingh@Taruns-MacBook-Pro ~ % java -version
openjdk version "11.0.11" 2021-04-20
OpenJDK Runtime Environment AdoptOpenJDK-11.0.11+9 (build 11.0.11+9)
OpenJDK 64-Bit Server VM AdoptOpenJDK-11.0.11+9 (build 11.0.11+9, mixed mode)

Install Maven on Mac OS

So we have done with Java. Now the further instruction is to install Maven on your Mac.

In order to install Maven on Mac, please run this command in Terminal.

$ sdk install maven

You will get this result.

tarunkumarsingh@Taruns-MacBook-Pro ~ % sdk install maven

Downloading: maven 3.8.1

In progress...

########################################################################################################## 100.0%

Installing: maven 3.8.1
Done installing!


Setting maven 3.8.1 as default.

It presents that Maven installation is successful. Further step is to know the installed version. Moreover, it is already displayed in the result screen but let us check.

In order to check installed Maven version, please run this command in your Mac Terminal.

$ mvn version

It will give you this result.

tarunkumarsingh@Taruns-MacBook-Pro ~ % mvn -version
Apache Maven 3.8.1 (05c21c65bdfed0f71a2f2ada8b84da59348c4c5d)
Maven home: /Users/tarunkumarsingh/.sdkman/candidates/maven/current
Java version: 11.0.11, vendor: AdoptOpenJDK, runtime: /Users/tarunkumarsingh/.sdkman/candidates/java/11.0.11.hs-adpt
Default locale: en_GB, platform encoding: UTF-8
OS name: "mac os x", version: "11.3", arch: "x86_64", family: "mac"

So, now Maven is ready in your Mac OS. Further step is to install Node JS.

Install NVM on Mac OS

Before installing Node JS, we will install NVM packages. With the help of NVM packages further we will install Node JS.

To clarify, why are we installing NVM ? In fact, NVM will help us to use Node JS as per our choice.

So, let us run this command to update brew firstly and then install NVM in our Mac Os.

$ brew update

It will update Homebrew to the latest version. You will find this result.

tarunkumarsingh@Taruns-MacBook-Pro ~ % brew update
==> Homebrew is run entirely by unpaid volunteers. Please consider donating:
  https://github.com/Homebrew/brew#donations
Updated 1 tap (homebrew/core).
==> Updated Formulae
mitmproxy                                          pulumi
==> Renamed Formulae
parallelstl -> onedpl
tarunkumarsingh@Taruns-MacBook-Pro ~ % 

Further, you can run this command to install NVM in one shot.

$ brew install nvm

You will get the below result for this command.

tarunkumarsingh@Taruns-MacBook-Pro ~ % brew install nvm
==> Downloading https://ghcr.io/v2/homebrew/core/nvm/manifests/0.38.0
######################################################################## 100.0%
==> Downloading https://ghcr.io/v2/homebrew/core/nvm/blobs/sha256:f3cd481b024f9e46a56450d6aaf43c83875
==> Downloading from https://pkg-containers.githubusercontent.com/ghcr1/blobs/sha256:f3cd481b024f9e46
######################################################################## 100.0%
==> Pouring nvm--0.38.0.all.bottle.tar.gz
==> Caveats

Further, you need to create a directory for NVM in Home. Please use this command to do so.

$ mkdir ~/.nvm

Afterwards, let us configure NVM directory in bash_profile file.

$ vim ~/.bash_profile

Once this file is editable add this line in it.

export NVM_DIR=~/.nvm
source $(brew --prefix nvm)/nvm.sh

Afterwards, Save this file. Press ESC + :wq to save and close your file.

Before starting next step, load the updated environment variables to the current shell.

$ source ~/.bash_profile

Finally, NVM installed and successfully configured. So, let’s keep patience and read next lines. Our further step is to install Node JS.

In case you find “zsh: command not found: nvm” error. Then please read ZSH command not found nvm error in Mac reason and solution.

Install Node JS using HomeBrew on Mac OS

Before installing required Node JS version, let us see the available versions in NVM package.

$ nvm ls-remote

Once this command executes successfully, please run these two commands one by one. In this tutorial we will install Node v14.17.3 version i.e. Node JS 14th version.

$ nvm install node
$ nvm install 14

You check which version installed in your Mac by running this command.

$ nvm ls
Install NVM Node JS Angular Java on MAc OS
Install NVM Node JS Angular Java on MAc OS

Since, we need to install Node JS v14.17.3. So, please run this command.

$ nvm install v14.17.3

Finally, check again for the installed version by running nvm ls command. In our case the installed version and default install version is same. So, we are able to see the same image.

Now run this command to use the required Node JS version.

$ nvm use 14.17.3

That’s it. Finally, everything completed for Node JS installation on your Mac Os.

Further, we will install Angular.

Install Angular

To install angular, you need to run this command.

$ npm install -g @angular/cli@11

You will get this result.

tarunkumarsingh@Taruns-MacBook-Pro ~ % npm install -g @angular/cli@11
npm WARN deprecated [email protected]: this library is no longer supported
npm WARN deprecated [email protected]: Please upgrade  to version 7 or higher.  Older versions may use Math.random() in certain circumstances, which is known to be problematic.  See https://v8.dev/blog/math-random for details.
npm WARN deprecated [email protected]: Please upgrade  to version 7 or higher.  Older versions may use Math.random() in certain circumstances, which is known to be problematic.  See https://v8.dev/blog/math-random for details.
npm WARN deprecated [email protected]: request has been deprecated, see https://github.com/request/request/issues/3142

added 246 packages, and audited 247 packages in 18s

22 packages are looking for funding
  run `npm fund` for details

found 0 vulnerabilities
npm notice 
npm notice New minor version of npm available! 7.19.1 -> 7.20.0
npm notice Changelog: https://github.com/npm/cli/releases/tag/v7.20.0
npm notice Run npm install -g [email protected] to update!
npm notice 
tarunkumarsingh@Taruns-MacBook-Pro ~ % 

So, finally we completed the Angular installation also. Further, let us install IntelliJ IDEA well know code editor.

Install Intellij IDEA on Mac Os

In order to install IntelliJ IDEA on Mac Os, you need to go to JetBrains download centre. From this URL, you need to download ultimate version of IntelliJ IDEA.

Once you have downloaded the .dmg file, go ahed and install. You need to give permission for installation. Once given, it will install IntelliJ IDEA in few seconds.

Moreover, IntelliJ IDEA is not free. It gives trial version for 15 days. Afterwards, you can purchase license.

Finally, one more installation for Angular code editor. Further, let us see to install Visual Studio Code.

Install Visual Studio Code

In order to install Visual Studio code on Mac Os, you can simply go to Visual Stdio official website. Futher, you can download Visual Studio Code source files for Mac Os.

.

Install visual studio angular java node js on Mac
Install visual studio angular java node js on Mac

Conclusion

Finally, We believe this article helped you in setting up your system environment. Further, for any help please drop your comments in comment box. In fact, our team will be more happy to answer you.

Happy learning! Note you have installed the best industry hot cake! : 🎂

Comments (0)

Leave a Reply

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