simple-http-server
simple-http-server copied to clipboard
Simple HTTP Server for Node.js
/usr/local/lib/node_modules/simple-http-server/lib/server.js:113 libs.path.exists(fullPath, function(exists){ ^ TypeError: undefined is not a function at Server. (/usr/local/lib/node_modules/simple-http-server/lib/server.js:113:17) at Server.emit (events.js:110:17) at HTTPParser.parserOnIncoming [as onIncoming](_http_server.js:491:12) at HTTPParser.parserOnHeadersComplete (_http_common.js:111:23) at Socket.socketOnData (_http_server.js:343:22) at Socket.emit (events.js:107:17) at...
Your npm module is outdated in the server.js file . It uses the path module to check file existence instead of using the fs module .I cloned your source to...
Hey Andrew! I went ahead and added some auth features. The basic idea is that you can now do... ``` bash nserver --auth p@ssw0rd ``` Then when the user hits...