I get this error:
Error: cannot find module 'browserify'
When I add this line to the app / server.js file:
var browserify = require('browserify');
Now I'm still new to Node, but I think I installed it correctly,
npm install -g browserify
according to your documents .
I am sure this is the command to test my global modules:
D:\Websites\MySite> npm ls -g C:\Users\Mark\AppData\Roaming\npm βββ¬ browserify@1.17.2 β βββ¬ buffer-browserify@0.0.4 β β βββ base64-js@0.0.2
A list of browsers is displayed here. So why can't I require this?
source share