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?

1 Answer 1

2

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

npm install -g browser-sync 

-g means global.

Sign up to request clarification or add additional context in comments.

3 Comments

Updated my question more fitting with the installation steps. You will see it is still not recognized why?
Check this question; stackoverflow.com/questions/9587665/… You have to edit windows PATH to make them executable from anywhere.
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.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.