Flipper: Support Desktop app on Linux

Created on 12 Jun 2018  路  8Comments  路  Source: facebook/flipper

Do you have any plan to make this app runnable on Linux system ( for me, I'm using Ubuntu 18.04 ).

Curl 7.60.0
Yarn 1.7.0

I tried to run it then got this error.

yarn
[1/4] Resolving packages...
[2/4] Fetching packages...
info [email protected]: The platform "linux" is incompatible with this module.
info "[email protected]" is an optional dependency and failed compatibility check. Excluding it from installation.
[3/4] Linking dependencies...
warning " > [email protected]" has incorrect peer dependency "babel-eslint@^7.2.3".
[4/4] Building fresh packages...
$ node node_modules/electron/install.js && node scripts/yarn-install.js
warning "metro > @babel/[email protected]" has incorrect peer dependency "@babel/[email protected]".
馃摝 Installed all dependencies!
Done in 62.17s.

yarn start
Error: watch Sonar/node_modules/handlebars/dist/cjs/handlebars/helpers ENOSPC
at _errnoException (util.js:1022:11)
at FSWatcher.start (fs.js:1382:19)
at Object.fs.watch (fs.js:1408:11)
at NodeWatcher.watchdir (Sonar/static/node_modules/sane/src/node_watcher.js:175:20)
at Walker. (Sonar/static/node_modules/sane/src/common.js:127:12)
at emitTwo (events.js:126:13)
at Walker.emit (events.js:214:7)
at Sonar/static/node_modules/walker/lib/walker.js:69:16
at FSReqWrap.oncomplete (fs.js:135:15)
error Command failed with exit code 1

JS

Most helpful comment

Just tried building on my box and both yarn start and yarn build work fine. I reckon this is file handle limits as @danielbuechele said. Check what ulimit -n says and if it's a low number (< 100000), then you'll likely run into those kinda problems.

All 8 comments

Is this a bug other users are experiencing, too? We created a linux build and were not facing this error. The ENOSPC looks like the file watcher is watching too many files.

Just tried building on my box and both yarn start and yarn build work fine. I reckon this is file handle limits as @danielbuechele said. Check what ulimit -n says and if it's a low number (< 100000), then you'll likely run into those kinda problems.

@passy
Oh, it works :+1:
I tried to increase "fs.file-max" in "/etc/sysctl.conf" file and now everything seems OK.

Thank you so much.

@danielbuechele
Thank you too.

I get this error when running yarn.
[email protected]: The platform "linux" is incompatible with this module.
it fails to install dependencies.

This shouldn't break the build. Can you post the full error message? @koox00

Running yarn install --verbose

yarn install v1.7.0
[1/4] Resolving packages...
[2/4] Fetching packages...
.............
error [email protected]: The platform "linux" is incompatible with this module.
verbose 0.91 Error: Found incompatible module
    at MessageError.ExtendableBuiltin (/usr/lib/node_modules/yarn/lib/cli.js:243:66)
    at new MessageError (/usr/lib/node_modules/yarn/lib/cli.js:272:123)
    at checkOne (/usr/lib/node_modules/yarn/lib/cli.js:63281:11)
    at Object.check (/usr/lib/node_modules/yarn/lib/cli.js:63300:5)
    at /usr/lib/node_modules/yarn/lib/cli.js:22813:73
    at Generator.next (<anonymous>)
    at step (/usr/lib/node_modules/yarn/lib/cli.js:98:30)
    at /usr/lib/node_modules/yarn/lib/cli.js:109:13
    at <anonymous>
error Found incompatible module

For now you can use remove this dependency. It is not needed in your case. This should fix the build for you, while I try to find a solution to this.

should be fixed in #6f95ad5

Was this page helpful?
0 / 5 - 0 ratings

Related issues

orlandobustamantep picture orlandobustamantep  路  3Comments

paschaldev picture paschaldev  路  3Comments

vkotovv picture vkotovv  路  3Comments

leoafarias picture leoafarias  路  3Comments

xstable picture xstable  路  4Comments