Skip to content Skip to sidebar Skip to footer

Node Error: Cannot Find Module './lib/querystring'

I keep getting the following error when trying to run node ./bin/www Error: Cannot find module './lib/querystring' at Function.Module._resolveFilename (module.js:327:15)

Solution 1:

Thanks to @KevinB for help finding the solution. One of my modules did not install correctly.

First delete your node_modules folder

sudo rm -R ./node_modules

After make sure and run a npm uninstall on the module that has a problem (shown at Object.<anonymous> (/Users/dfranc3373/Project/node_modules/request/request.js:22:19))

npm uninstall request

Then run npm cache clean

Finally run npm update; npm install --save

Post a Comment for "Node Error: Cannot Find Module './lib/querystring'"