mxsdev / nvim-dap-vscode-js

nvim-dap adapter for vscode-js-debug
271 stars 27 forks source link

Error trying to launch JS debugger: EACCES: permission denied #8

Closed MB-Izzo closed 2 years ago

MB-Izzo commented 2 years ago

When installing, Error trying to launch JS debugger: EACCES: permission denied is thrown when I try to launch the debugger. It seems that it happens with both recommended installation methods (manual and with packer).

My $USER have access to the file. -rwxrwxr-x 1 myUser myUser 5635 août 27 00:24 vsDebugServer.js

mxsdev commented 1 year ago

Sorry for the late reply - I presume you figured out the issue?

perrin4869 commented 1 year ago

I just ran into this. In my case, the cause was that NODE_PATH was set to /usr/lib64/node_modules. The solution in my case was to set node_path option to node explicitly. Maybe this will help someone else who runs into this.

quin-aot commented 6 months ago

Hi! I am also having this issue. I am using nvm and do not have a NODE_PATH env var. Any ideas on what could be causing this?