🔥 AdonisJS From Scracth Early Access is Now Open!

Installing Node.js

To run AdonisJS, we need to install Node.js. In this lesson, I cover various methods for installing Node.js.

Transcript

To get started, let's set up our development environment. Since Adonis JS is a Node JS framework, we need to have nodejs installed to run adonisjs. So let's start with installing nodejs. There are a couple of ways to install nodejs. The simplest way will be to head over to the nodejs website and click on the download button which will download the correct Node.

Js version for your operating system. I am on a Mac. So if I click on this button, it will download the version for macOS. Alternatively, you can install Node. Js using package managers.

So if we head over to the download session and under the package manager tab, you will see that we can download Node. Js using different managers. By default, it is set to use NVM which stands for node version manager but you can change that to use a different manager depending on the one you are most comfortable with. So if we are to go with NVM, we will simply run these commands to have Node. Js installed on our system.

Again, depending on your operating system, and you can select your operating system here. Adonis. Js requires Node. Js version 20.6 and above. So whichever method you decide to use to install Node.

Js, ensure that you install at least Node. Js version 20.6. For this course, we'll be using the current lts version which is version 22.11. After installing Node. Js, you can confirm that you have it installed by opening a terminal and run the command node dash v which should display the version of Node.

Js you have installed. As you can see, I have version 22.11 installed. If you have properly installed Node. Js, you should get a version displayed when you run the node dash v command.