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

npm internal/modules/cjs/loader.js:883 throw err; ^ Error: Cannot find module 'code-point-at' Require stack: - C:\Users\(File Name)\AppData\Roaming\npm\node_modules\npm\node_modules\gauge\node_modules\string-width\index.js #3336

Closed
HamzaZaidiX opened this issue Apr 23, 2021 · 6 comments
Labels

Comments

@HamzaZaidiX
Copy link

Hello Everyone!
I am Having an Error in Node Js Please! Take a look at my problem I have tried all the commands but no change Please! see my error and tell me where I am wrong I have tried Everything Please! Tell me how to solve this Problem if u know!
The error (down below) is coming in when I type npm or npx .

C:\Users\Hamza Zaidi>npm
internal/modules/cjs/loader.js:883
  throw err;
   ^
Error: Cannot find module 'code-point-at'
Require stack:
- C:\Users\Hamza Zaidi\AppData\Roaming\npm\node_modules\npm\node_modules\gauge\node_modules\string-width\index.js
- C:\Users\Hamza Zaidi\AppData\Roaming\npm\node_modules\npm\node_modules\gauge\wide-truncate.js
- C:\Users\Hamza Zaidi\AppData\Roaming\npm\node_modules\npm\node_modules\gauge\render-template.js
- C:\Users\Hamza Zaidi\AppData\Roaming\npm\node_modules\npm\node_modules\gauge\plumbing.js
- C:\Users\Hamza Zaidi\AppData\Roaming\npm\node_modules\npm\node_modules\gauge\index.js
- C:\Users\Hamza Zaidi\AppData\Roaming\npm\node_modules\npm\node_modules\npmlog\log.js
- C:\Users\Hamza Zaidi\AppData\Roaming\npm\node_modules\npm\lib\cli.js
- C:\Users\Hamza Zaidi\AppData\Roaming\npm\node_modules\npm\bin\npm-cli.js
←[90m    at Function.Module._resolveFilename (internal/modules/cjs/loader.js:880:15)←[39m
←[90m    at Function.Module._load (internal/modules/cjs/loader.js:725:27)←[39m
←[90m    at Module.require (internal/modules/cjs/loader.js:952:19)←[39m
←[90m    at require (internal/modules/cjs/helpers.js:88:18)←[39m
    at Object.<anonymous> (C:\Users\Hamza Zaidi\AppData\Roaming\npm\node_modules\←[4mnpm←[24m\node_modules\←[4mgauge←[24m\node_modules\←[4mstring-width←[24m\index.js:3:19)
←[90m    at Module._compile (internal/modules/cjs/loader.js:1063:30)←[39m
←[90m    at Object.Module._extensions..js (internal/modules/cjs/loader.js:1092:10)←[39m
←[90m    at Module.load (internal/modules/cjs/loader.js:928:32)←[39m
←[90m    at Function.Module._load (internal/modules/cjs/loader.js:769:14)←[39m
←[90m    at Module.require (internal/modules/cjs/loader.js:952:19)←[39m {
  code: ←[32m'MODULE_NOT_FOUND'←[39m,
  requireStack: [
    ←[32m'C:\\Users\\Hamza Zaidi\\AppData\\Roaming\\npm\\node_modules\\npm\\node_modules\\gauge\\node_modules\\string-width\\index.js'←[39m,
    ←[32m'C:\\Users\\Hamza Zaidi\\AppData\\Roaming\\npm\\node_modules\\npm\\node_modules\\gauge\\wide-truncate.js'←[39m,
    ←[32m'C:\\Users\\Hamza Zaidi\\AppData\\Roaming\\npm\\node_modules\\npm\\node_modules\\gauge\\render-template.js'←[39m,
    ←[32m'C:\\Users\\Hamza Zaidi\\AppData\\Roaming\\npm\\node_modules\\npm\\node_modules\\gauge\\plumbing.js'←[39m,
    ←[32m'C:\\Users\\Hamza Zaidi\\AppData\\Roaming\\npm\\node_modules\\npm\\node_modules\\gauge\\index.js'←[39m,
    ←[32m'C:\\Users\\Hamza Zaidi\\AppData\\Roaming\\npm\\node_modules\\npm\\node_modules\\npmlog\\log.js'←[39m,
    ←[32m'C:\\Users\\Hamza Zaidi\\AppData\\Roaming\\npm\\node_modules\\npm\\lib\\cli.js'←[39m,
    ←[32m'C:\\Users\\Hamza Zaidi\\AppData\\Roaming\\npm\\node_modules\\npm\\bin\\npm-cli.js'←[39m
  ]
}

I have Uninstall the Node js and Reinstall again but no change I have tried The Commands like:
Delete the node_modules
Delete the package-lock .json file
Run npm install
Run npm start
Run This command: rm -rf node_modules package-lock.json && npm install && npm start but this command is also giving error 'rm' is not recognized as an internal or external command, operable program or batch file.

Screenshot (54)

@benjamingr benjamingr transferred this issue from nodejs/node Apr 23, 2021
@aduh95
Copy link

aduh95 commented Apr 23, 2021

Duplicate of nodejs/node#38317 and npm/cli#2850.

@KrishnaPrabha13
Copy link

I am facing this problem please help me out

I am getting error when I type npm.

Capture

@Maxintoworld
Copy link

i had the same problem.
fix it with this command " npm install git-remote-origin-url "

@mohininalla
Copy link

mohininalla commented Jul 9, 2022

I have Uninstalled the Node js and Reinstall it. The problem is resolved for me.

@sathishKumar5555555555555

i have the same problem

Copy link

github-actions bot commented May 9, 2024

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 9, 2024
@RedYetiDev RedYetiDev closed this as not planned Won't fix, can't repro, duplicate, stale May 9, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

8 participants
@aduh95 @RedYetiDev @HamzaZaidiX @KrishnaPrabha13 @Maxintoworld @mohininalla @sathishKumar5555555555555 and others