I am trying to create a navbar using Bootstrap 4. Here is the content og my package.json file :
{
"name": "NAME here",
"version": "1.0.0",
"description": "Descripttion ges there",
"main": "index.html",
"scripts": {
"test": "echo \"Error: no test specified\" && exit 1"
},
"author": "author's name",
"license": "ISC",
"dependencies": {
"bootstrap": "^4.0.0",
"jquery": "^3.3.1",
"popper.js": "^1.12.9"
}
}
and here is the code of the page index.html
<!Doctype html>
<html>
<head>
<meta charset="utf-8" />
<meta name="viewport" content="width=device-width,initial-scale=1.0" />
<meta name="description" content="description here"/>
<meta name="author" content="author's name and contact" />
<link rel="stylesheet" href="./node_modules/bootstrap/dist/css/bootstrap.min.css" />
<title>Bienvenue a TSL Group</title>
</head>
<body>
<div class="container">
<div class="row">
<nav class="navbar navbar-default" role="navigation">
<div class="navbar-header">
<a class="navbar-brand">Brand name</a>
</div>
<div class="navbar-collapse collapse navbar-right">
<ul class="nav navbar-nav">
<li>
<a href="">welcome</a>
</li>
<li>
<a href="">Products</a>
</li>
<li>
<a href=""> Services</a>
</li>
<li>
<a href="">Menu </a>
</li>
<li>
<a href="">Contact us</a>
</li>
</ul>
</div>
</nav>
</div>
</div>
</body>
<script type="text/javascript" src="./node_modules/jquery/dist/jquery.min.js"></script>
<script type="text/javascript" src="./node_modules/bootstrap/dist/js/bootstrap.min.js">
</script>
</html>
But unfortunately, when I run the page in the browser, the navbar is not displayed. I don't know what is wrong with this code. Any help?