NPM, cannot find 'graceful-fs', no matter what I do


This is what I get when I try to install express for node.js

npm install express

    throw err;
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:362:17)
    at require (module.js:378:17)
    at Object.<anonymous> (/usr/share/npm/lib/utils/ini.js:32:10)
    at Module._compile (module.js:449:26)
    at Object.Module._extensions..js (module.js:467:10)
    at Module.load (module.js:356:32)
    at Function.Module._load (module.js:312:12)
    at Module.require (module.js:362:17)

I even tried others and still got the same error. I did some digging and i did find 'gracefui-fs' on my server.

I am running ubuntu 12.04 LTS on an amazon ec2 server. Node installed with no errors, and npm still didn't work. I also un installed and re installed npm using


as well as from source. During installation I received no errors either.

7/8/2012 1:06:16 AM

Had the same problem. Don't download npm from aptitude or apt-get.

Instead try:

git clone --depth=1 git://
cd cli/scripts
chmod +x
sudo ./

saw it here: NPM can't install appjs. Error: Cannot find module 'graceful-fs'

8/19/2018 7:58:22 AM

Licensed under: CC-BY-SA with attribution
Not affiliated with: Stack Overflow