0

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?

ui-matt
  • 394
  • 2
  • 5
  • 15

1 Answers1

2

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

npm install -g browser-sync

-g means global.

cdagli
  • 1,578
  • 16
  • 23
  • Updated my question more fitting with the installation steps. You will see it is still not recognized why? – ui-matt Jun 15 '15 at 14:19
  • 1
    Check this question; http://stackoverflow.com/questions/9587665/nodejs-cannot-find-installed-module-on-windows You have to edit windows PATH to make them executable from anywhere. – cdagli Jun 15 '15 at 14:34
  • Good find! That worked a treat thanks for that... I just added an environment variable called `NODE_PATH` and set it to where the modules got installed. – ui-matt Jun 15 '15 at 15:08