Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

browserify is installed, but is not available in command line

Tags:

node.js

npm

I install Browserify:

npm install -g browserify

then I try to run it:

$ browserify main.js > bundle.js

and Windows says

'browserify' is not recognized as an internal or external command

Why is that? The Browserify page promises it will work, but it does not.

like image 938
shal Avatar asked Mar 30 '16 13:03

shal


1 Answers

I resolved this issue by

npm uninstall browserify --save
npm install browserify -g
npm install browserify-shim -- save
like image 167
Sofia Khwaja Avatar answered Sep 20 '22 17:09

Sofia Khwaja