U
U
user_tm2018-05-28 00:01:24
ubuntu
user_tm, 2018-05-28 00:01:24

How to install Browsersync on Ubuntu?

Installed Ubuntu 18.04 LTS (Bionic Beaver) kernel 4.15.0-22-generic. I wanted to install Browsersync and before installing node.js and npm 5b0b1aa619780206263725.pngas it should be, and after that, to install Browsersync, I entered the command npm install -g browser-sync and this is what the terminal issued: 5b0b1b27915db498706429.pnghere is the text pm WARN optional Skipping failed optional dependency /browser-sync/chokidar/ fsevents:
npm WARN notsup Not compatible with your operating system or architecture: [email protected]
npm ERR! Linux 4.15.0-22-generic
npm ERR! argv "/usr/bin/node" "/usr/bin/npm" "install" "-g" "browser-sync"
npm ERR! node v8.10.0
npm ERR! npm v3.5.2
npm ERR! path /usr/local/lib
npm ERR! code EACCES
npm ERR! errno -13
npm ERR!
npm ERR! Error: EACCES: permission denied, access '/usr/local/lib'
npm ERR! { Error: EACCES: permission denied, access '/usr/local/lib'
npm ERR! errno: -13,
npm ERR! code: 'EACCES',
npm ERR! syscall: 'access',
npm ERR! path: '/usr/local/lib' }
npm ERR!
npm ERR! Please try running this command again as root/Administrator.
npm ERR! Please include the following file with any support request:
npm ERR! /home/comp/npm-debug.log
and what does it mean "Please include the following file with any support request: /home/comp/npm-debug.log"
I have this file, but what does it mean include with any support request ?
maybe the version of node.js is old, if so, I don’t know how to update it either.

Answer the question

In order to leave comments, you need to log in

1 answer(s)
S
Sergey, 2018-05-28
@butteff

I would venture to guess, I'm not sure, but maybe node js has a different location, outside /usr/bin/node, then you need to find where the node is, and point the symlink to it in /usr/bin/node.
PS
It seems the assumption is correct .

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question