D
D
Dmitriy Sizov2017-08-22 06:46:33
Node.js
Dmitriy Sizov, 2017-08-22 06:46:33

How to install Browser-sync locally in a project on Mac?

installed globally and via sudo, but as I understand it, this is not a very good option judging from the official documentation:
"WARNING - do not use sudo! If you're running Mac OSX and encounter problems when trying to install Browsersync - either globally or locally, it's almost always because you have problems with NPM permissions.Checkout their docs for a guide on how to fix this once and for all - it only takes 2 minutes :)"

Answer the question

In order to leave comments, you need to log in

1 answer(s)
A
Alexander, 2017-08-22
@boratsagdiev

npm install browser-sync --save-dev
Run locally
Can be added to npm scripts for convenience.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question