question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

BrowserSync : Command not found

See original GitHub issue

There was another issue open with the same title which has been closed but my error could not be resolved using the solutions given in that issue.

  • Mac OSX El Capitan
  • Node [v5.6.0]
  • Npm [v3.6.0]

I installed Browser-Sync successfully using :

$ sudo npm install -g browser-sync

but when I check the browser-sync version by typing :

$ browser-sync --version

I get this error :

-bash: browser-sync: command not found

screen shot 2016-02-19 at 1 15 49 pm

Issue Analytics

  • State:closed
  • Created 8 years ago
  • Comments:6 (1 by maintainers)

github_iconTop GitHub Comments

1reaction
fvschcommented, Feb 19, 2016

This is not a problem with BrowserSync and should be closed. It’s an issue with your environment (OSX, Homebrew, Node.js installed via Homebrew maybe, npm config).

Where does npm install global packages in your setup? (I think you can get that with npm config get prefix.) Is that folder in the $PATH environment variable? If not, you should add it. Be sure to add the exact folder where npm will install executables. In my case, I configured npm to install global packages to ~/Library/npm, and I added ~/Library/npm/bin to my $PATH.

0reactions
shrashti08commented, Aug 2, 2021

in my desktop it show that npm command not found …m not able to install browser sync by using the link mentioned in their website please help to resolve this

Read more comments on GitHub >

github_iconTop Results From Across the Web

BrowserSync : Command not found after installing browser-sync
Turns out my windows 10 put that downloaded file into %appdata% folder which is in Local Disk (C), but it's an invisible folder...
Read more >
Browsersync Command Line Usage
First, either install Browsersync globally, or locally to your project (if you're using npm scripts) and then run one of the following commands...
Read more >
browser-sync command not found - Code Grepper
browser-sync command not found ; 1. Check where npm installs it's binaries by running, ; 2. npm bin -g ; 3. ​ ;...
Read more >
Browser-sync is installed but doesn't open website on sierra os x
-bash: browser-sync: command not found. There is no error when i precede the command with “npm”: ottergram documents$ npm browser-sync -v
Read more >
NPM browser-sync Package (Install, Use, and Examples)
If you would like to run Browsersync from the command line in any directory, it can be installed globally with the following command....
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found