Cannot install Browser-sync with ' npm install -g browser-sync '

Author: abhinavjediCreated Feb 2, 2019Updated Oct 20, 2025

Issue details

I am trying to install Browser-sync with npm using 'npm install -g browser-sync' but I am not able to do so I am getting the following out put and when I check it with "browser-sync --version" it says there is no such command. I am on windows and using cmd. What is the problem?

Steps to reproduce/test case

Please provide necessary steps for reproduction of this issue, or better the reduced test case (without any external dependencies).

Please specify which version of Browsersync, node and npm you're running

  • Browsersync [ ]
  • Node [ 8.11.2 ]
  • Npm [ 5.6.0 ]

Affected platforms

  • linux
  • windows
  • OS X
  • freebsd
  • solaris
  • other (please specify which)

Browsersync use-case

  • API
  • Gulp
  • Grunt
  • CLI

If CLI, please paste the entire command below

{

bash
C:\Windows\system32>npm install -g browser-sync

C:\Users\Vaibhav WEB\AppData\Roaming\npm\browser-sync -> C:\Users\Vaibhav WEB\AppData\Roaming\npm\node_modules\browser-sync\dist\bin.js

npm WARN optional SKIPPING OPTIONAL DEPENDENCY: [email protected] (node_modules\browser-sync\node_modules\fsevents):

npm WARN notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for [email protected]: wanted {"os":"darwin","arch":"any"} (current: {"os":"win32","arch":"x64"})

+ [email protected] added 343 packages in 92.853s

C:\Windows\system32>browser-sync --version 'browser-sync' is not recognized as an internal or external command, operable program or batch file.

C:\Windows\system32>

}

for all other use-cases, (gulp, grunt etc), please show us exactly how you're using Browsersync

{Browsersync init code here}

Source: BrowserSync/browser-sync