Hello and welcome to this video.
In this video, I'm going to initialize, he knew no doubt this project.
Open up your command prompt if you on a Windows computer or your terminal.
If you're on a Mac, I'm going to create the project directory.
You can create it any way you like.
I want to create it on my desktop, so I'm going to change directory to my desktop.
So I've typed in C the space desktop and press enter, and that takes me into my desktop directory.
So this is where I want to create my project directory to create a new directory.
You just type in empty space.
The name of your directory, I've called my directory BLS, so I'm going to press enter and that you
create a new folder on my desktop.
You can see the folder here that has been created, which is called Bless.
The next step is to change directory into the folder I just created.
So you do that by typing in see this space.
The name of the directory you just created, I'm press enter and that takes you into that directory
to initialize a new Node.js project, you type in npm space init space.
That's why the npm init command is a step by step tool that you can use to scaffold out your project.
So it will prompt you for a variety of questions which you can answer yes or no to by using the dash.
After the npm space in it, it will answer yes to any prompts that npm might display on the screen.
So I'm just going to press enter to that and then you can see what it does.
So you can see you.
Usually it'll prompt you for an answer to all this, but because I've used it, that's why it automatically
accepted all the default prompts.
I've got my code editor open, which is Visual Studio code.
So if I want to view the project folder inside my code editor, I just drag the folder and drop it in
my editor, and that will enable me to view the files and the project so you might get this prompt that
pops up.
Just click on the checkbox and click Trust.
So I now have my project directory inside my code editor.
So if I click on the package toward JS on file, which was created using the npm command, you can see
the content of the package JSON file.
All Node.js projects should contain a package, thought Jason File.
When the project is initialized, the Potato JS on file basically contains important metadata information
about the project.
It also defines functional attributes of a project that npm uses to install dependencies to run scripts
and also to identify the entry point into an application or package.