Adding the link in your html will make it so that you can use it in your frontend code only. So you’ll be able to access it from your
index.html, and js files in your public folder.
But for many packages (like Express), you need to run them on your server (ie in your
server.js) – that’s what
packages.json is for.