lordofpomelo icon indicating copy to clipboard operation
lordofpomelo copied to clipboard

master branch code is not running in my ubuntu 18.04 local system.

Open akshayarise opened this issue 6 years ago • 3 comments

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)

akshayarise avatar Oct 19 '18 06:10 akshayarise

Mime's version has been changed. You can use getType instead lookup.

losophy avatar Mar 04 '19 06:03 losophy

Pr #58 solved the problem.

RobertIndie avatar Feb 16 '20 13:02 RobertIndie

change mime version in package.json ,change version with 1.X

ff8663521 avatar Apr 16 '20 11:04 ff8663521