Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Failing to update #2022

Open
8 tasks
quiltedstars opened this issue Mar 2, 2023 · 1 comment
Open
8 tasks

Failing to update #2022

quiltedstars opened this issue Mar 2, 2023 · 1 comment

Comments

@quiltedstars
Copy link

Issue details

When I tried to call via "browser-sync start --server 'Practice' --index test.html --files="." it will load, but once I update the file (test.html) it will fail.

Originally it spit back that "System limit for number of file watchers reached" and told me that my chibios download was the cause, so I deleted it. Now I am getting this response:

 --------------------------------------
       Local: http://localhost:3000
    External: http://192.168.2.165:3000
 --------------------------------------
          UI: http://localhost:3001
 UI External: http://localhost:3001
 --------------------------------------
[Browsersync] Serving files from: Practice
[Browsersync] Watching files...
[Browsersync] Reloading Browsers... (buffered 5 events)
[Browsersync] Reloading Browsers...
node:internal/errors:490
    ErrorCaptureStackTrace(err);
    ^

Error: EACCES: permission denied, watch '/home/mags/.steam/debian-installation/steamapps/compatdata/1245620/pfx/dosdevices/z:/boot/efi'
    at FSWatcher.<computed> (node:internal/fs/watchers:247:19)
    at Object.watch (node:fs:2332:36)
    at createFsWatchInstance (/usr/local/lib/node_modules/browser-sync/node_modules/chokidar/lib/nodefs-handler.js:119:15)
    at setFsWatchListener (/usr/local/lib/node_modules/browser-sync/node_modules/chokidar/lib/nodefs-handler.js:166:15)
    at NodeFsHandler._watchWithNodeFs (/usr/local/lib/node_modules/browser-sync/node_modules/chokidar/lib/nodefs-handler.js:331:14)
    at NodeFsHandler._handleDir (/usr/local/lib/node_modules/browser-sync/node_modules/chokidar/lib/nodefs-handler.js:567:19)
    at process.processTicksAndRejections (node:internal/process/task_queues:95:5)
    at async NodeFsHandler._addToNodeFs (/usr/local/lib/node_modules/browser-sync/node_modules/chokidar/lib/nodefs-handler.js:617:16)
Emitted 'error' event on FSWatcher instance at:
    at FSWatcher._handleError (/usr/local/lib/node_modules/browser-sync/node_modules/chokidar/index.js:647:10)
    at NodeFsHandler._addToNodeFs (/usr/local/lib/node_modules/browser-sync/node_modules/chokidar/lib/nodefs-handler.js:645:18)
    at process.processTicksAndRejections (node:internal/process/task_queues:95:5) {
  errno: -13,
  syscall: 'watch',
  code: 'EACCES',
  path: '/home/mags/.steam/debian-installation/steamapps/compatdata/1245620/pfx/dosdevices/z:/boot/efi',
  filename: '/home/mags/.steam/debian-installation/steamapps/compatdata/1245620/pfx/dosdevices/z:/boot/efi'
}

Node.js v19.7.0
  • Browsersync [ 2.28.1 ]
  • Node [ 19.7.0 ]
  • Npm [ 9.5.0 ]

Affected platforms

  • [x ] linux
  • windows
  • OS X
  • freebsd
  • solaris
  • other (please specify which)

Browsersync use-case

  • API
  • Gulp
  • Grunt
  • [ x] CLI

If CLI, please paste the entire command below

browser-sync start --server 'Practice' --index text.html --files="."

@quiltedstars
Copy link
Author

quiltedstars commented Mar 2, 2023

Managed to get it working by going into the directory itself and running

browser-sync start --server --index test.html --files "*.*"

However, I think it's still an issue that it's running through all my files (or at least the ones via WINE?) if I mistakenly insert what I thought was the directory, as per the example:

Examples
Start a server from the app directory, watching all files

I mean, I guess it works if it is watching all files in every directory, but my assumption would've been it's watching all files within the directory, in this case 'Practice'.

So even though I fixed it, I feel like this is still an issue?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant