Install Bootstrap 4.0.0 via node package Manager

In this article, We will learn about how to install Bootstrap 4.0.0 via node package manager. NPM is the world largest software registry which includes over 600,000 packages. Using this registry we will install bootstrap 4.0.0. There is only one command to install bootstrap in your project. You can use bootstrap cdn or other package managers to install it but npm is the best method.

Open up your command prompt and create a directory using this command.

go inside this directory using this command.

Now you are inside of this directory.

Now you need to install the bootstrap package in this directory to use in your project. Make sure you have an active internet connection to install this package.

What you have to do you first need to create a package.json file and then create a dependency in the package.json file.

So this command will create default package.json file in the project.

You can use

or

To create default package.json file both command are equal.

Now we want to install Bootstrap 4.0.0 in the project.

This command will insert bootstrap package in the node module file.

This command will install bootstrap 4.0.0 in the project. Bootstrap does not export anything. You want to load JQuery Plugins manually.

You can load JQuery in the project using this code. So just place this code just before the closing </body> tag.

That’s it.

Now Bootstrap 4.0.0 Is install in the project.

Now you can use bootstrap classes in your project.

If you want to learn bootstrap from the examples then click on this article to learn more about bootstrap. On this website, you will learn about bootstrap, asp.net, PHP, HTML and CSS, and WordPress.

If you have any question then comment me in the comment section.

Follow me on Facebook, Instagram, and Youtube.

Thank You.