I have installed bootstrap with NPM and got the css to work fine with the following syntax:
//server side
const path = require('path');
expressApp.use(express.static(path.join(__dirname, '/node_modules/bootstrap/dist/css')));
//client side
<link rel="stylesheet" type="text/css" href="bootstrap.css">
However, when I try to do the same thing for adding the js from bootstrap 4 I'm not able to success. I have tried the following way:
expressApp.use(express.static(path.join(__dirname, '/node_modules/bootstrap/dist/js')));
<script src="bootstrap.bundle.js"></script>
Can anyone help me out with this one? Thank you in advance.