Coder Social home page Coder Social logo

infer-bin's Introduction

Deprecated

Deprecated because no one is using it and I don't intend to maintain it.


infer-bin Build Status

Binary wrapper for Infer - A static analyzer for Java, C and Objective-C

Only macOS and Linux (64-bit) binaries are currently provided.

CLI

$ npm install --global infer-bin
$ infer

API

$ npm install --save infer-bin
const execFile = require('child_process').execFile;
const infer = require('infer-bin');

execFile(infer, ['--version'], (err, stdout) => {
	console.log(stdout);
});

License

MIT © Sindre Sorhus

infer-bin's People

Contributors

arthurvr avatar sindresorhus avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Forkers

mastilver

infer-bin's Issues

Failed to Install - Mac OSX

I'm having some issues installing the library. Hopefully this isn't just a user error, as I'm not to versed with Node or npm.

> [email protected] install /Users/andrew/bin/nodejs/lib/node_modules/infer-bin/node_modules/bin-wrapper/node_modules/bin-check/node_modules/spawn-sync/node_modules/try-thread-sleep/node_modules/thread-sleep
> node-pre-gyp install --fallback-to-build

[thread-sleep] Success: "/Users/andrew/bin/nodejs/lib/node_modules/infer-bin/node_modules/bin-wrapper/node_modules/bin-check/node_modules/spawn-sync/node_modules/try-thread-sleep/node_modules/thread-sleep/lib/binding/Release/node-v11-darwin-x64/thread_sleep.node" is installed via remote

> [email protected] postinstall /Users/andrew/bin/nodejs/lib/node_modules/infer-bin/node_modules/bin-wrapper/node_modules/bin-check/node_modules/spawn-sync
> node postinstall

/Users/andrew/bin/nodejs/bin/infer -> /Users/andrew/bin/nodejs/lib/node_modules/infer-bin/cli.js

> [email protected] postinstall /Users/andrew/bin/nodejs/lib/node_modules/infer-bin
> node lib/install.js


/Users/andrew/bin/nodejs/lib/node_modules/infer-bin/lib/index.js:36
                throw err;
                      ^
Error: spawn ENOENT
    at errnoException (child_process.js:1001:11)
    at Process.ChildProcess._handle.onexit (child_process.js:792:34)

npm ERR! [email protected] postinstall: `node lib/install.js`
npm ERR! Exit status 8
npm ERR! 
npm ERR! Failed at the [email protected] postinstall script.
npm ERR! This is most likely a problem with the infer-bin package,
npm ERR! not with npm itself.
npm ERR! Tell the author that this fails on your system:
npm ERR!     node lib/install.js
npm ERR! You can get their info via:
npm ERR!     npm owner ls infer-bin
npm ERR! There is likely additional logging output above.
npm ERR! System Darwin 14.4.0
npm ERR! command "/Users/andrew/bin/nodejs/bin/node" "/Users/andrew/bin/nodejs/bin/npm" "install" "--global" "infer-bin"
npm ERR! cwd /Users/andrew/work/consensus/Consensus/Reports/Infer
npm ERR! node -v v0.10.33
npm ERR! npm -v 1.4.28
npm ERR! code ELIFECYCLE
npm ERR! not ok code 0

Problem with install

node installed via homebrew

➜ ~ node -v
v0.12.7
➜ ~ npm -v
3.3.2
➜ ~

➜ ~ sudo npm install --global infer-bin
/usr/local/bin/infer -> /usr/local/lib/node_modules/infer-bin/cli.js

[email protected] postinstall /usr/local/lib/node_modules/infer-bin/node_modules/spawn-sync
node postinstall

[email protected] postinstall /usr/local/lib/node_modules/infer-bin/node_modules/spawn-sync
node postinstall

[email protected] postinstall /usr/local/lib/node_modules/infer-bin
node lib/install.js

/usr/local/lib/node_modules/infer-bin/lib/index.js:36
throw err;
^
Error: spawn tar ENOENT
at exports._errnoException (util.js:746:11)
at Process.ChildProcess._handle.onexit (child_process.js:1053:32)
at child_process.js:1144:20
at process._tickCallback (node.js:355:11)
npm ERR! Darwin 14.5.0
npm ERR! argv "node" "/usr/local/bin/npm" "install" "--global" "infer-bin"
npm ERR! node v0.12.7
npm ERR! npm v3.3.2
npm ERR! code ELIFECYCLE

npm ERR! [email protected] postinstall: node lib/install.js
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the [email protected] postinstall script 'node lib/install.js'.
npm ERR! This is most likely a problem with the infer-bin package,
npm ERR! not with npm itself.
npm ERR! Tell the author that this fails on your system:
npm ERR! node lib/install.js
npm ERR! You can get their info via:
npm ERR! npm owner ls infer-bin
npm ERR! There is likely additional logging output above.

npm ERR! Please include the following file with any support request:
npm ERR! /Users/damianoneill/npm-debug.log
➜ ~

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.