-
Notifications
You must be signed in to change notification settings - Fork 296
Closed as not planned
Labels
Description
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.