LeetCode-OpenSource/vscode-leetcode

Error: ENOENT: no such file or directory, mkdir '\\?' Please open the output channel for details.

Lacia-I opened this issue · 3 comments

The problem was appeared suddenly.
When I click the button 'Code Now', this error will show right now.
I don't know why the error show: mkdir '\?' .
How to fix the problem?

I have the same problem as you. I ran "node --trace-warnings ..." in command, and it returns this result:

Debugger attached.
Waiting for the debugger to disconnect...
node:internal/modules/cjs/loader:936
  throw err;
  ^

Error: Cannot find module 'G:\Code\leetcode\...'
    at Function.Module._resolveFilename (node:internal/modules/cjs/loader:933:15)
    at Function.Module._load (node:internal/modules/cjs/loader:778:27)
    at Function.executeUserEntryPoint [as runMain] (node:internal/modules/run_main:77:12)
    at node:internal/main/run_main_module:17:47 {
  code: 'MODULE_NOT_FOUND',
  requireStack: []
}

'G:\Code\leetcode...' is my working directory

I read this issue and solved the problem. #742
In the original settings, my working directory is 'F:\Code\leetcode'. It is synchronized from the settings of another computer.
I set the local settings to correct and it works normally.

image

I read this issue and solved the problem. #742 In the original settings, my working directory is 'F:\Code\leetcode'. It is synchronized from the settings of another computer. I set the local settings to correct and it works normally.

image

NICE! Thank you! I also have two computers, and vscode syncs the paths with different root directories from the other computer. Now I solve the problem.