Pindakaas
Pindakaas

Reputation: 4439

how to fix cannot find module graceful-fs error?

I have grunt configured and when I run 'grunt serve' I get this error:

Error: Cannot find module 'graceful-fs'
    at Function.Module._resolveFilename (module.js:338:15)
    at Function.Module._load (module.js:280:25)
    at Module.require (module.js:364:17)
    at require (module.js:380:17)

how can I fix this error and run my app?

Upvotes: 2

Views: 5551

Answers (2)

henkieee
henkieee

Reputation: 1123

The solution for on windows 10 was

  • Removing the current npm directory in the main directory nodejs/node_modules
  • Cloning the last build of npm https://github.com/npm/npm.git into the nodejs/node_modules dir

Upvotes: 0

mohamed amr
mohamed amr

Reputation: 51

Try

1 - npm cache clear

2 - remove node_modules

3 - npm install

Upvotes: 2

Related Questions