You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hi! Could you possibly open an issue in nodejs/help?
In that issue, please make use of markdown features to format your issue. This way, finding the root cause of the issue will be easier. Additionally, please make sure all information is in the right spot in the template.
(Note to members: please do not transfer this issue. The author appears to have put some information in the wrong spots of the template, so it'd be easier if they just reopened it).
Version
While writing any npm command I'm getting an error node:internal/modules/cjs/loader:1148 throw err; ^ Error: Cannot find module '../../package.json' Require stack: - C:\Users\psc\AppData\Roaming\npm\node_modules\npm\lib\cli\validate-engines.js - C:\Users\psc\AppData\Roaming\npm\node_modules\npm\lib\cli.js - C:\Users\psc\AppData\Roaming\npm\node_modules\npm\bin\npx-cli.js at Module._resolveFilename (node:internal/modules/cjs/loader:1145:15) at Module._load (node:internal/modules/cjs/loader:986:27) at Module.require (node:internal/modules/cjs/loader:1233:19) at require (node:internal/modules/helpers:179:18) at Object. (C:\Users\psc\AppData\Roaming\npm\node_modules\npm\lib\cli\validate-engines.js:8:49) at Module._compile (node:internal/modules/cjs/loader:1358:14) at Module._extensions..js (node:internal/modules/cjs/loader:1416:10) at Module.load (node:internal/modules/cjs/loader:1208:32) at Module._load (node:internal/modules/cjs/loader:1024:12) at Module.require (node:internal/modules/cjs/loader:1233:19) { code: 'MODULE_NOT_FOUND', requireStack: [ 'C:\Users\psc\AppData\Roaming\npm\node_modules\npm\lib\cli\validate-engines.js', 'C:\Users\psc\AppData\Roaming\npm\node_modules\npm\lib\cli.js', 'C:\Users\psc\AppData\Roaming\npm\node_modules\npm\bin\npx-cli.js' ] } Node.js v20.15.0
Platform
Subsystem
No response
What steps will reproduce the bug?
When I write npm init /npx create-react-app or any npm command I'm getting this error..I've tried all the ways available in stack overflow or GitHub
How often does it reproduce? Is there a required condition?
N/A
What is the expected behavior? Why is that the expected behavior?
N/A
What do you see instead?
N/A
Additional information
N/A
The text was updated successfully, but these errors were encountered: