-
Notifications
You must be signed in to change notification settings - Fork 714
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Debugger: Error: ENOENT, no such file or directory #412
Comments
Hi guys, Would like to check, if the problem could be fixes with an older version. Thanks a lot! |
Use |
I tried at first "npm install [email protected]" |
"Can you reproduce this situation by extending simple server ?" |
"First that I can recommend you - reinstall express" |
okay, i get two different results: $ node-inspector --version $ npm info node-inspector version |
I get this same issue. It was repeatedly running in the debugger, without changing any source code or anything. I had just honed into the place the bug I was originally trying to find, and then the next time I run with the inspector it came up with this for express. I reinstalled this inspector, and recloned my node js server from github. And this time it was the same error as here except instead of express it was colors. EDIT: Turning off break on all exceptions (pause-like button in bottom left) makes this go away. But doesn't explain why it suddenly started nor why it suddenly was ok with express and then had a problem with colors. |
i deleted all express files and reinstalled it. but there is no difference, still the same trouble. I forgot to say, that I've the problem on two different computers... and it came up to different times. |
@Jon889 , can I see example of failing code anywhere? |
@draschke , have you other projects without this error, but with installed express? |
@3y3, No. The path is here: |
@draschke, Are you working with this express_example? |
No, but almost the same project. But I installed it ("express_example") right now and checked, if the behavior is the same. exception: Error: ENOENT, no such file or directory The right path is here: |
Ok, it's a good point. Now I can try to reproduce problem in real example. See you later =) |
$ npm list -g --depth=0 [email protected] gulp and mocha are not important. they were installed after the error came up. [email protected] is also unnecessary. I installed the generator to get the problem fixed. |
It seems that it tries to look for a file called express.js instead or before looking for the express module. Perhaps that's how node decides whether what you're requiring a file or module. As in if there's an exception when looking for express.js then it must be a module called express? |
Uhm, why I don't ask screenshot at first...! |
@Jon889 , have you same problem or different? |
If you do not want to see this error, disable "Pause on uncaught errors" --> where? |
Oh, no! I don't believe it! ---> It works!!! :) Big thanks to you!!! |
Really sorry for wasting your time, but I checked the whole internet and couldn't find an answer. |
No problem =) |
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:
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
4
and brings this path up. ---> is okay!
c:\Nodeapp\git bpr 23052014\bpr\node_modules\express
5
// given a path check
function tryExtensions
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
The text was updated successfully, but these errors were encountered: