I've been struggling with this for some time now and can't find the mistake I made. I want to use icons from FontAwesome in my express website. I installed fontawesome via npm as per their docs
$ npm install --save @fortawesome/fontawesome-free
I set up to serve static files in app.js:
app.use(express.static("public"));
app.use(express.static("node_modules/@fortawesome"));
and made reference in the boilerplate's head:
<link rel="stylesheet" href="/node_modules/@fortawesome/fontawesome-free/css/all.css">
<script src="/node_modules/@fortawesome/fontawesome-free/js/all.js"></script>
I'm getting 404 on all.js and for css:
MIME type ('text/html') is not a supported stylesheet MIME type, and strict MIME checking is enabled
where is or where are my mistakes? Thanks