Skip to content

Debugger: Error: ENOENT, no such file or directory #412

@draschke

Description

@draschke

Hi guys,
I've trouble while debugging with node-inspector.
I use Windows 7, node-inspector 0.7.4, Express: 4.8.3

I've this problem on two different machines.

Ok, what I could find out:

1

Error came up at this point:

fs.statSync = function(path) {
  nullCheck(path);
  return binding.stat(pathModule._makeLong(path));
};

2

The first line shows the path the debugger is looking for..
The second line shows the right path
Debugger - C:\Nodeapp\git bpr 23052014\bpr\node_modules\express.js
Real Path - C:\Nodeapp\git bpr 23052014\bpr\node_modules\express\lib\express.js

3

He founds this pathes
module.js
paths: request = express

0: "c:\Nodeapp\git bpr 23052014\bpr\node_modules"
1: "c:\Nodeapp\git bpr 23052014\node_modules"
2: "c:\Nodeapp\node_modules"
3: "c:\node_modules"
4: "C:\Users\diraschk.node_modules"
5: "C:\Users\diraschk.node_libraries"
6: "c:\Program Files (x86)\lib\node"

4

and brings this path up. ---> is okay!
c:\Nodeapp\git bpr 23052014\bpr\node_modules\express

5

// given a path check
function tryExtensions

0: ".js"
1: ".json"
2: ".node"

6

and brings this path up, but there is no file with this extension
// check if the file exists and is not a directory function tryFile(requestPath)
{ "c:\Nodeapp\git bpr 23052014\bpr\node_modules\express.js"
--> But there is not such a file!
The file is here: C:\Nodeapp\git bpr 23052014\bpr\node_modules\express\lib\express.js

Is there a possibility to skip this error?
Best regards,
Dirk

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions