Answer the question
In order to leave comments, you need to log in
Why is node js not working?
I tried to install browser-sync via npm (on macOS). I wrote in the console:
npm install -g browser-sync
npm ERR! code EACCES
npm ERR! syscall symlink
npm ERR! path ../lib/node_modules/browser-sync/dist/bin.js
npm ERR! dest /usr/local/bin/browser-sync
npm ERR! errno -13
npm ERR! Error: EACCES: permission denied, symlink '../lib/node_modules/browser-sync/dist/bin.js' -> '/usr/local/bin/browser-sync'
npm ERR! [OperationalError: EACCES: permission denied, symlink '../lib/node_modules/browser-sync/dist/bin.js' -> '/usr/local/bin/browser-sync'] {
npm ERR! cause: [Error: EACCES: permission denied, symlink '../lib/node_modules/browser-sync/dist/bin.js' -> '/usr/local/bin/browser-sync'] {
npm ERR! errno: -13,
npm ERR! code: 'EACCES',
npm ERR! syscall: '
npm ERR! path: '../lib/node_modules/browser-sync/dist/bin.js',
npm ERR! dest: '/usr/local/bin/browser-sync'
npm ERR! },
npm ERR! stack: "Error: EACCES: permission denied, symlink '../lib/node_modules/browser-sync/dist/bin.js' -> '/usr/local/bin/browser-sync'",
npm ERR! errno: -13,
npm ERR! code: 'EACCES',
npm ERR! syscall: 'symlink',
npm ERR! path: '../lib/node_modules/browser-sync/dist/bin.js',
npm ERR! dest: '/usr/local/bin/browser-sync'
npm ERR! }
npm ERR!
npm ERR! The operation was rejected by your operating system.
npm ERR!
npm ERR! If you believe this might be a permissions issue, please double-check the
npm ERR! permissions of the file and its containing directories, or try running
npm ERR! the command again as root/Administrator.
npm ERR! A complete log of this run can be found in:
npm ERR! /Users/user/.npm/_logs/2020-02-06T12_39_46_249Z-debug.log
browser-sync is not a command
Answer the question
In order to leave comments, you need to log in
https://stackoverflow.com/questions/47252451/permi...
https://www.willandskill.se/en/how-to-fix-eacces-e...
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question