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

Missing module graceful-fs #4519

Open
Umb3333 opened this issue Dec 18, 2024 · 2 comments
Open

Missing module graceful-fs #4519

Umb3333 opened this issue Dec 18, 2024 · 2 comments
Labels

Comments

@Umb3333
Copy link

Umb3333 commented Dec 18, 2024

Version

Node.js v20.18.0

Platform

Microsoft Windows NT 10.0.19045.0 x64

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:

  • 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
    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

@aduh95 aduh95 transferred this issue from nodejs/node Dec 20, 2024
@CodeGoura
Copy link

I want to work with this issue

@CodeGoura
Copy link

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');

Clear cache and reinstall node module
npm cache clean --force
rm -rf node_modules
npm install

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

3 participants