Skip to content
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

Administrator mode error #3153

Closed
m-Phoenix852 opened this issue Dec 31, 2020 · 7 comments
Closed

Administrator mode error #3153

m-Phoenix852 opened this issue Dec 31, 2020 · 7 comments

Comments

@m-Phoenix852
Copy link

  • 12.13.1:
  • Windows:

What steps will reproduce the bug?

Whenever I run a node program with administrator privileges, it throws this error

internal/modules/cjs/loader.js:800
    throw err;
    ^

Error: Cannot find module 'C:\Windows\system32'
    at Function.Module._resolveFilename (internal/modules/cjs/loader.js:797:15)
    at Function.Module._load (internal/modules/cjs/loader.js:690:27)
    at Function.Module.runMain (internal/modules/cjs/loader.js:1047:10)
    at internal/main/run_main_module.js:17:11 {
  code: 'MODULE_NOT_FOUND',
  requireStack: []
}

How often does it reproduce? Is there a required condition?

Every time I run a program in administrator mode, it throws that error.

What is the expected behavior?

I don't even know why that error, its most probably because the working directory should be set to C:/Windows/System32 instead of C:/Windows/system32 (probably case sensitive).

What do you see instead?

Additional information

@PoojaDurgad
Copy link

@m-Phoenix852 - can you elaborate your issue more please? and can you try to fill template issue?

@m-Phoenix852
Copy link
Author

@m-Phoenix852 - can you elaborate your issue more please? and can you try to fill template issue?

see now ;-;

@PoojaDurgad
Copy link

@m-Phoenix852 - well looks like your install path may be corrupted. what does where node and where npm gives? its a duplicate of #1618 . I hope you can refer this.

@PoojaDurgad PoojaDurgad transferred this issue from nodejs/node Dec 31, 2020
@m-Phoenix852
Copy link
Author

@m-Phoenix852 - well looks like your install path may be corrupted. what does where node and where npm gives? its a duplicate of #1618 . I hope you can refer this.

where node gives me

C:\Program Files\nodejs\node.exe

and where npm gives me

C:\Program Files\nodejs\npm
C:\Program Files\nodejs\npm.cmd

@ghost
Copy link

ghost commented Dec 31, 2020

I m having the same problem

Copy link

It seems there has been no activity on this issue for a while, and it is being closed in 30 days. If you believe this issue should remain open, please leave a comment.
If you need further assistance or have questions, you can also search for similar issues on Stack Overflow.
Make sure to look at the README file for the most updated links.

@github-actions github-actions bot added the stale label May 10, 2024
Copy link

github-actions bot commented Jun 9, 2024

It seems there has been no activity on this issue for a while, and it is being closed. If you believe this issue should remain open, please leave a comment.
If you need further assistance or have questions, you can also search for similar issues on Stack Overflow.
Make sure to look at the README file for the most updated links.

@github-actions github-actions bot closed this as not planned Won't fix, can't repro, duplicate, stale Jun 9, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants