If you are not sure whether you already have running try this
- Open up your command prompt
- type
node --version
and you will see the current node version - type
npm --version
and you will see the current npm version
If you cannot see any versions follow the installation below:
- Download the .msi installer from [http://nodejs.org/](node.js page)
- Run the downloaded installer and follow the instructions
- Restart your machine
Once you alredy have Node.js and NPM running you can easily installed NPM packages available on the net. Browsersync helps to automate cross browser and responsive testing. http://www.browsersync.io/
- Open up your command prompt
- Run
npm install -g browser-sync
command and wait for the installation to finish. Specifying-g
will tell NPM to install the package globally so it can accessible from all your projects.
- Open up your command prompt
- Navigate to your project directory
- Run
browser-sync --server --files "css/*.css" "*.html"
- Make sure your other devices are connected using the same network
- Open using the IP address provided to view the pages