npm install error not installing BrowserSync package

3.4k views Asked by At

Trying to install BrowserSync

I've followed the steps to install the package through the command line, installed node.js and then I went on to install npm through the command line.

Now when I try to install browser-sync with the following line npm install -g browser-sync you will see it is not recognized when I check the version and its the same when I try do anything like start --server?

enter image description here

note tried installing another package as a test jshint successfully installs/uninstalls but displays the same message when checking its version.

Any suggestions?

1

There are 1 answers

3
cdagli On BEST ANSWER

Have you tried like below? (http://www.browsersync.io/#install)

npm install -g browser-sync

-g means global.