node-ddos icon indicating copy to clipboard operation
node-ddos copied to clipboard

ENOENT: no such file or directory, open '/types/mime.types'

Open AnthonyNahas opened this issue 7 years ago • 1 comments

I've just added the dos module to my nodes server and since that integration the server is not starting anymore...

This error message is being displayed on the screen and I have no idea what's going wrong with mime.types directory...

> node dist/server.js

fs.js:646
  return binding.open(pathModule._makeLong(path), stringToFlags(flags), mode);
                 ^

Error: ENOENT: no such file or directory, open '/types/mime.types'
    at Object.fs.openSync (fs.js:646:18)
    at Object.fs.readFileSync (fs.js:551:33)
    at Mime.load

Usage: as expected:

var Ddos = require('ddos')
var express = require('express')

const ddos = new Ddos();
app.use(ddos.express);

any idea? any suggestion ?

These are some information about my env: OS: Mac OS highSierra Node: v8.9.4 Npm: 5.5.6 dos: current (0.1.28)

AnthonyNahas avatar Mar 01 '18 20:03 AnthonyNahas

Taking a look at this @AnthonyNahas

rook2pawn avatar Mar 02 '18 00:03 rook2pawn