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
C:\Users\user\AppData\Roaming\npm\node_modules\npm\bin\npm-cli.js
at Module._resolveFilename (node:internal/modules/cjs/loader:1225:15)
at Module._load (node:internal/modules/cjs/loader:1051:27)
at Module.require (node:internal/modules/cjs/loader:1311:19)
at require (node:internal/modules/helpers:179:18)
at C:\Users\user\AppData\Roaming\npm\node_modules\npm\lib\npm.js:21:10
at Object. (C:\Users\user\AppData\Roaming\npm\node_modules\npm\lib\npm.js:467:3)
at Module._compile (node:internal/modules/cjs/loader:1469:14)
at Module._extensions..js (node:internal/modules/cjs/loader:1548:10)
at Module.load (node:internal/modules/cjs/loader:1288:32)
code: 'MODULE_NOT_FOUND',
requireStack: [
'C:\Users\user\AppData\Roaming\npm\node_modules\npm\lib\npm.js',
'C:\Users\user\AppData\Roaming\npm\node_modules\npm\bin\npm-cli.js'
]
}
Node.js v20.18.0`
Additional information
No response
The text was updated successfully, but these errors were encountered:
Check if graceful-fs is Installed:
ls node_modules | grep graceful-fs // this is check graceful-fs installed or not @preveen-stack if not installed run
npm install graceful-fs // it install the module
check required module correctly in code:
const gracefulFs = require('graceful-fs');
Version
Node.js v20.18.0
Platform
Subsystem
graceful fs
What steps will reproduce the bug?
I truely haven't a clue why this is happening.
How often does it reproduce? Is there a required condition?
It happens every time i run a command
What is the expected behavior? Why is that the expected behavior?
Expected behavior is a successful installation of what ever library i'm installing.
What do you see instead?
`node:internal/modules/cjs/loader:1228
throw err;
^
Error: Cannot find module 'graceful-fs'
Require stack:
at Module._resolveFilename (node:internal/modules/cjs/loader:1225:15)
at Module._load (node:internal/modules/cjs/loader:1051:27)
at Module.require (node:internal/modules/cjs/loader:1311:19)
at require (node:internal/modules/helpers:179:18)
at C:\Users\user\AppData\Roaming\npm\node_modules\npm\lib\npm.js:21:10
at Object. (C:\Users\user\AppData\Roaming\npm\node_modules\npm\lib\npm.js:467:3)
at Module._compile (node:internal/modules/cjs/loader:1469:14)
at Module._extensions..js (node:internal/modules/cjs/loader:1548:10)
at Module.load (node:internal/modules/cjs/loader:1288:32)
code: 'MODULE_NOT_FOUND',
requireStack: [
'C:\Users\user\AppData\Roaming\npm\node_modules\npm\lib\npm.js',
'C:\Users\user\AppData\Roaming\npm\node_modules\npm\bin\npm-cli.js'
]
}
Node.js v20.18.0`
Additional information
No response
The text was updated successfully, but these errors were encountered: