We had our production environment collapse because node-static wants mime >="1.2.9", which introduced a breaking change
TypeError: mime.lookup is not a function
at Server.respond (/var/app/current/node_modules/node-static/lib/node-static.js:348:28)
at /var/app/current/node_modules/node-static/lib/node-static.js:64:22
at FSReqWrap.oncomplete (fs.js:123:15)
Forcing npm install mime@1.3.6 fixed the issue for us
We had our production environment collapse because node-static wants
mime >="1.2.9"
, which introduced a breaking changeForcing
npm install mime@1.3.6
fixed the issue for us