Skip to content

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

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

Closed
Lacia-I opened this issue Feb 22, 2023 · 3 comments

Comments

@Lacia-I
Copy link

Lacia-I commented Feb 22, 2023

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?

@sdd-bob
Copy link

sdd-bob commented Mar 11, 2023

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

@sdd-bob
Copy link

sdd-bob commented Mar 11, 2023

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

@Lacia-I
Copy link
Author

Lacia-I commented Mar 12, 2023

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.

@Lacia-I Lacia-I closed this as completed Mar 12, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants