lordofpomelo
lordofpomelo copied to clipboard
master branch code is not running in my ubuntu 18.04 local system.
when I run the web server with the command "node app.js" then it shows me the below error : -
Web server has started. Please log on http://127.0.0.1:3001/ Caught exception: TypeError: mime.lookup is not a function at /var/www/html/lordofpomelo/web-server/node_modules/express/node_modules/connect/lib/middleware/static.js:144:17 at FSReqWrap.oncomplete (fs.js:123:15) Caught exception: TypeError: mime.lookup is not a function at /var/www/html/lordofpomelo/web-server/node_modules/express/node_modules/connect/lib/middleware/static.js:144:17 at FSReqWrap.oncomplete (fs.js:123:15) Caught exception: TypeError: mime.lookup is not a function at /var/www/html/lordofpomelo/web-server/node_modules/express/node_modules/connect/lib/middleware/static.js:144:17 at FSReqWrap.oncomplete (fs.js:123:15) Caught exception: TypeError: mime.lookup is not a function at /var/www/html/lordofpomelo/web-server/node_modules/express/node_modules/connect/lib/middleware/static.js:144:17 at FSReqWrap.oncomplete (fs.js:123:15) Caught exception: TypeError: mime.lookup is not a function at /var/www/html/lordofpomelo/web-server/node_modules/express/node_modules/connect/lib/middleware/static.js:144:17 at FSReqWrap.oncomplete (fs.js:123:15) Caught exception: TypeError: mime.lookup is not a function at /var/www/html/lordofpomelo/web-server/node_modules/express/node_modules/connect/lib/middleware/static.js:144:17 at FSReqWrap.oncomplete (fs.js:123:15) Caught exception: TypeError: mime.lookup is not a function at /var/www/html/lordofpomelo/web-server/node_modules/express/node_modules/connect/lib/middleware/static.js:144:17 at FSReqWrap.oncomplete (fs.js:123:15) Caught exception: TypeError: mime.lookup is not a function at /var/www/html/lordofpomelo/web-server/node_modules/express/node_modules/connect/lib/middleware/static.js:144:17 at FSReqWrap.oncomplete (fs.js:123:15)
Mime's version has been changed. You can use getType instead lookup.
Pr #58 solved the problem.
change mime version in package.json ,change version with 1.X