I would like to know if when I run those 2 commands:
npm install jquery
npm install boostrap
var $ = require('jquery');
var bootstrap = require('bootstrap');
I would suggest you user bower for this kind of stuff as they are going to be served as static. Bower requires a flat dependency tree, so it's easy to manage dependency conflicts (i.e. multiple jquery file).
To install bower:
npm install -g bower
Install bootstrap using bower:
bower install bootstrap --save
Bootstrap has jquery as it's dependency so it will be installed, you won't need to install it separately.
To see path of installed packages:
bower list --path
Now add those path to your index.ejs file. Currently you will see bootstrap.less path. To add bootstrap.css path you will have to find it manually. I think it's in:
To get a clear idea take a look at this.
Hope it helped you. Thanks!!