Browser-sync: 'browser-sync' is not recognized as an internal or external command

Created on 25 Nov 2014  路  6Comments  路  Source: BrowserSync/browser-sync

Hi community,

I've install Browser Sync, but when i start server, i've this message on my console :+1:

'browser-sync' is not recognized as an internal or external command

Screen :

node-npm

Any idea ? :)

Thank you !

Most helpful comment

Did you add npm bin directory to your path (I guess you are on windows)

I had to add C:\Users\USERNAMEHERE\AppData\Roaming\npm to mine
If you check using explorer you should have browser-sync.cmd in this directory

All 6 comments

Did you add npm bin directory to your path (I guess you are on windows)

I had to add C:\Users\USERNAMEHERE\AppData\Roaming\npm to mine
If you check using explorer you should have browser-sync.cmd in this directory

Hello Jonathan :)

Merci pour ta r茅ponse ! Pour les PATH, il me semble que oui (j'ai test茅 sur le PC du taff), sur le mien, Windows ou Linux, aucun probl猫me :)

Je check 莽a demain matin en arrivant ;)

Bonne soir茅e !

Hello :)

Npm has been present to my path :

path-windows

My node is installer with Chocolatey, maybe the problem can be here ? :(

EDIT : after uninstall node.commandline with Chocolatey and install node with .exe, browser-sync work fine ! So the problem is chocolatey :(

Fixed !

@Grafikart :+1: Thank you very much, add PATH worked for me!

Did you add npm bin directory to your path (I guess you are on windows)

I had to add C:\Users\USERNAMEHERE\AppData\Roaming\npm to mine
If you check using explorer you should have browser-sync.cmd in this directory
@Grafikart it didn't work for me please suggest other method

@sound-vaish2 if you already have npm added to your path, try installing browser-sync globally
Run this command: npm i -g browser-sync
The 'g' tag here will install the module globally.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

ronilaukkarinen picture ronilaukkarinen  路  4Comments

pensierinmusica picture pensierinmusica  路  4Comments

ngryman picture ngryman  路  3Comments

Zver64 picture Zver64  路  3Comments

danielverejan picture danielverejan  路  3Comments