fgnass / filewatcher Goto Github PK
View Code? Open in Web Editor NEWWrapper around fs.watch that falls back to fs.watchFile
Wrapper around fs.watch that falls back to fs.watchFile
Hello, I'm having a problem running a project which uses filewatcher as a dependency, I'm running node v14.1.0
on the latest version of Manjaro, I've encountered this error:
> [email protected] start /home/onlurking/Documents/band-aid
> ts-node-dev -r ./src/env.ts --respawn src/server.ts --errorOnMissing=true
Using ts-node version 8.6.2, typescript version 3.8.3
TypeError [ERR_FEATURE_UNAVAILABLE_ON_PLATFORM]: The feature watch recursively is unavailable on the current platform, which is being used to run Node.js
at Object.watch (fs.js:1441:11)
at add (/home/onlurking/Documents/band-aid/node_modules/filewatcher/index.js:74:34)
at /home/onlurking/Documents/band-aid/node_modules/filewatcher/index.js:93:5
at FSReqCallback.oncomplete (fs.js:176:5)
The recursion option is not avalaible on Linux systems according to the node.js fs.watch documentation:
The recursive option is only supported on macOS and Windows. An ERR_FEATURE_UNAVAILABLE_ON_PLATFORM exception will be thrown when the option is used on a platform that does not support it.
I'm working on a fix.
I'm just posting this here as an FYI, I'm not sure you can do anything about it. Feel free to close if you don't want this cluttering up issues :)
Hi,
Could you please tell how to identify event type like : create, change, delete, rename and etc.
Thanks
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.