When you have a package installed that has a new version available and that new version is a Major version, you can’t just simply install the latest using
npm i <package-name>
if you execute the above command, it will only install the latest of the current version you have installed. So if you have 5.45 installed and latest version under the 5 release is 5.56, then “npm i” will install 5.56 even if the latest version is 6.57. To upgrade the package to the latest with the latest being a new release, you must do
npm install browser-sync@2
2 representing the new major version.