There was another issue open with the same title which has been closed but my error could not be resolved using the solutions given in that issue.
I installed Browser-Sync successfully using :
bash
$ sudo npm install -g browser-sync
but when I check the browser-sync version by typing :
bash
$ browser-sync --version
I get this error :
bash
-bash: browser-sync: command not found
Check where npm installs it's binaries by running npm bin -g
, and then add that to your PATH
.
export PATH=$PATH:/usr/local/bin