flow / flow-bin

Binary wrapper for Flow - A static type checker for JavaScript
https://flow.org
Other
535 stars 47 forks source link

Lates Flow-bin broken #166

Closed villesau closed 5 years ago

villesau commented 5 years ago

The setup is same as before, but flow-bin throws:

events.js:174
      throw er; // Unhandled 'error' event
      ^

Error: spawn /Users/pat/to/code/node_modules/flow-bin/flow-osx-v0.105.0/flow ENOENT
    at Process.ChildProcess._handle.onexit (internal/child_process.js:240:19)
    at onErrorNT (internal/child_process.js:415:16)
    at process._tickCallback (internal/process/next_tick.js:63:19)
    at Function.Module.runMain (internal/modules/cjs/loader.js:757:11)
    at startup (internal/bootstrap/node.js:283:19)
    at bootstrapNodeJSCore (internal/bootstrap/node.js:622:3)
Emitted 'error' event at:
    at Process.ChildProcess._handle.onexit (internal/child_process.js:246:12)
    at onErrorNT (internal/child_process.js:415:16)
    [... lines matching original stack trace ...]
    at bootstrapNodeJSCore (internal/bootstrap/node.js:622:3)

Disconnected

Looks like flow-osx-v0.105.0/flow does not exist.

mroch commented 5 years ago

for some reason, the binaries didn't get uploaded as part of the npm package, even though the checksums were updated.

i just published flow-bin@v0.105.1 to npm, even though it still packages 0.105.0 (so yarn flow version will print 0.105.0). if that causes any issues, then we'll have to actually publish 0.105.2 binaries.

abhikulshrestha22 commented 4 years ago

@mroch Could u please tell how to resolve this. I tried installing v0.105.1 in react-native but it is still not working.

esbozos commented 4 years ago

@abhikulshrestha22 I just catch the same error, and after read this I just installed 0.105.2 and fixed the issue. I supposed that you already resolved this. But just leave this comment to anybody else who crash with this issue.