-bash: browserify: command not found error when using Browserify?

nick asked this question 11 months ago
nick on Mar 7, 2022

On my Macbook, I tried running the following command with Browserify:

browserify -r ./app/main:app > static/bundle.js

But, I got the following error output:

-bash: browserify: command not found error

How do I fix that?

1 suggested answers
moon_man41 on Mar 7, 2022

You need to install the Browserify NPM package globally on your machine:

npm install -g browserify

That should fix the error you're experiencing.

0 replies