node.js - Error: Cannot find module '/usr/lib/node_modules/node-inspector/lib/InjectorServer.js' -


i work on mean.js application (on top of express.js > node.js). succeed debug locally (on kubuntu) node inspector, no problem. fail debug remotely (from ubuntu server) , after pushed app on network.

i error on devtools console:

page.getresourcecontent failed. error: enoent, open '/home/remi/publisher-server/server.js' error: cannot find module '/usr/lib/node_modules/node-inspector/lib/injectorserver.js'

but server.js's file permissions 775, , owned me.

if @ screenshot can see browser access files tree , contents:

enter image description here

however, if @ one, you'll see server.js seems unreadable (content tab empty):

enter image description here

here steps follow:

i login server ssh options redirect the5858 port

ssh -l 5858:localhost:5858 my-remote-host 

from ssh session run app --debug option:

$ cd ~/publisher-server $ node --debug server.js  debugger listening on port 5858 application loaded using "development" environment configuration mean.js application started on port 3000 

from laptop run :

$ node-inspector node inspector v0.10.1 visit http://127.0.0.1:8080/debug?ws=127.0.0.1:8080&port=5858 start debugging. cannot resolve real path of /home/remi/publisher-server/server.js: error: enoent, lstat '/home/remi/publisher-server' 

you can notice last line throw error found again in devtools console when browse http://127.0.0.1:8080/debug?ws=127.0.0.1:8080&port=5858 :

page.getresourcecontent failed. error: enoent, open '/home/remi/publisher-server/server.js' error: cannot find module '/usr/lib/node_modules/node-inspector/lib/injectorserver.js'

this makes me bit crazy, i'm making wrong ?


Comments

Popular posts from this blog

javascript - gulp-nodemon - nodejs restart after file change - Error: listen EADDRINUSE events.js:85 -

Fatal Python error: Py_Initialize: unable to load the file system codec. ImportError: No module named 'encodings' -

javascript - oscilloscope of speaker input stops rendering after a few seconds -