mpen mpen - 1 year ago 146
Node.js Question

Cannot find module 'browserify'

I'm getting this error:

Error: Cannot find module 'browserify'

When I add this line to my app/server.js file:

var browserify = require('browserify');

Now I'm still new to Node, but I think I installed it correctly, via

npm install -g browserify

as per their docs.

I'm pretty sure this is the command to check my global modules:

D:\Websites\MySite> npm ls -g
├─┬ browserify@1.17.2
│ ├─┬ buffer-browserify@0.0.4
│ │ └── base64-js@0.0.2

It lists browserify there. So why can't I

Answer Source

I was face same problem but if you want to install browserify module you can use this

       npm install  browserify        
Recommended from our users: Dynamic Network Monitoring from WhatsUp Gold from IPSwitch. Free Download