Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP

Loading…

Installation Instructions #9

Closed
aackerman opened this Issue · 7 comments

4 participants

@aackerman

I was able to figure it out but it would be great for others if you could add the instructions that the project needs to be built with node-gyp before using. Or if it's possible to setup autobuild when the project is downloaded from npm that would be even better. Thanks.

@wadey
Owner

Are you using an old version of NPM? The latest versions should build the project with gyp when installing.

@wadey
Owner

Example of installing with npm 1.1.15, showing the building is done:

$ npm install microtime
npm http GET https://registry.npmjs.org/microtime
npm http 200 https://registry.npmjs.org/microtime
npm http GET https://registry.npmjs.org/bindings
npm http 200 https://registry.npmjs.org/bindings

> microtime@0.3.1 install /Users/wade/sandbox/node_modules/microtime
> node-gyp rebuild

info it worked if it ends with ok 
spawn python [ '/Users/wade/.node-gyp/0.6.14/tools/gyp_addon',
  'binding.gyp',
  '-I/Users/wade/sandbox/node_modules/microtime/build/config.gypi',
  '-f',
  'make' ]
spawn make [ 'BUILDTYPE=Release', '-C', 'build' ]
  CXX(target) Release/obj.target/microtime/src/microtime.o
  SOLINK_MODULE(target) Release/microtime.node
  SOLINK_MODULE(target) Release/microtime.node: Finished
info done ok 
microtime@0.3.1 ./node_modules/microtime
└── bindings@0.3.0
@aackerman

Yep I was on 1.1.0, if it works with newer versions everything is good.

@wadey
Owner

I'll research what version is required and put a note in the README

@nategood

:+1:

I too ran into this issue. A note in the README would be very helpful.

@wadey
Owner

Added note to README: 3f28c7e

@wadey wadey closed this
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Something went wrong with that request. Please try again.