devalexqt / toplive

Live monitor on node.js for CPU, RAM and per process usage, based on linux top command. Ideal for real time server impact loading testing.
14 stars 8 forks source link

mime.lookup is not a function #2

Open SlehMas opened 6 years ago

SlehMas commented 6 years ago

when loading the project, the following error shows up in the console:

TypeError: mime.lookup is not a function

Antoinebr commented 5 years ago

Same here

OleksiiZubko commented 4 years ago

Just change mime.lookup(req_file) to mime.getType(req_file)